mirror of
https://github.com/m5stack/StackChan.git
synced 2026-05-20 11:49:45 -07:00
17 lines
327 KiB
Go
17 lines
327 KiB
Go
/*
|
|||
|
|
SPDX-FileCopyrightText: 2026 M5Stack Technology CO LTD
|
||
|
|
SPDX-License-Identifier: MIT
|
||
|
|
*/
|
||
|
|
|
||
|
|
package model
|
||
|
|
|
||
|
|
const (
|
||
|
|
Authorization = "Authorization"
|
||
|
|
Mac = "Mac"
|
||
|
|
Exp = "Exp"
|
||
|
|
Username = "username"
|
||
|
|
Uid = "uid"
|
||
|
|
|
||
|
|
DefaultDanceData = "[\n {\n \"mouth\": {\n \"x\": 0,\n \"y\": 0,\n \"size\": 0,\n \"weight\": 0,\n \"rotation\": 0\n },\n \"leftEye\": {\n \"x\": 0,\n \"y\": 0,\n \"size\": 0,\n \"weight\": 100,\n \"rotation\": 0\n },\n \"rightEye\": {\n \"x\": 0,\n \"y\": 0,\n \"size\": 0,\n \"weight\": 100,\n \"rotation\": 0\n },\n \"yawServo\": {\n \"angle\": 0,\n \"speed\": 910\n },\n \"pitchServo\": {\n \"angle\": 450,\n \"speed\": 910\n },\n \"leftRgbColor\": \"#AAAAAA\",\n \"rightRgbColor\": \"#AAAAAA\",\n \"durationMs\": 1648\n },\n {\n \"mouth\": {\n \"x\": 0,\n \"y\": 0,\n \"size\": 0,\n \"weight\": 0,\n \"rotation\": 0\n },\n \"leftEye\": {\n \"x\": 0,\n \"y\": 0,\n \"size\": 0,\n \"weight\": 100,\n \"rotation\": 0\n },\n \"rightEye\": {\n \"x\": 0,\n \"y\": 0,\n \"size\": 0,\n \"weight\": 100,\n \"rotation\": 0\n },\n \"yawServo\": {\n \"angle\": 0,\n \"speed\": 835\n },\n \"pitchServo\": {\n \"angle\": 570,\n \"speed\": 835\n },\n \"leftRgbColor\": \"#AAAAAA\",\n \"rightRgbColor\": \"#AAAAAA\",\n \"durationMs\": 650\n },\n {\n \"mouth\": {\n \"x\": 0,\n \"y\": 0,\n \"size\": 0,\n \"weight\": 0,\n \"rotation\": 0\n },\n \"leftEye\": {\n \"x\": 0,\n \"y\": 0,\n \"size\": 0,\n \"weight\": 100,\n \"rotation\": 0\n },\n \"rightEye\": {\n \"x\": 0,\n \"y\": 0,\n \"size\": 0,\n \"weight\": 100,\n \"rotation\": 0\n },\n \"yawServo\": {\n \"angle\": 0,\n \"speed\": 422\n },\n \"pitchServo\": {\n \"angle\": 330,\n \"speed\": 422\n },\n \"leftRgbColor\": \"#AAAAAA\",\n \"rightRgbColor\": \"#AAAAAA\",\n \"durationMs\": 325\n },\n {\n \"mouth\": {\n \"x\": 0,\n \"y\": 0,\n \"size\": 0,\n \"weight\": 0,\n \"rotation\": 0\n },\n \"leftEye\": {\n \"x\": 0,\n \"y\": 0,\n \"size\": 0,\n \"weight\": 100,\n \"rotation\": 0\n },\n \"rightEye\": {\n \"x\": 0,\n \"y\": 0,\n \"size\": 0,\n \"weight\": 100,\n \"rotation\": 0\n },\n \"yawServo\": {\n \"angle\": 0,\n \"speed\": 870\n },\n \"pitchServo\": {\n \"angle\": 450,\n \"speed\": 870\n },\n \"leftRgbColor\": \"#AAAAAA\",\n \"rightRgbColor\": \"#AAAAAA\",\n \"durationMs\": 325\n },\n {\n \"mouth\": {\n \"x\": 0,\n \"y\": 0,\n \"size\": 0,\n \"weight\": 0,\n \"rotation\": 0\n },\n \"leftEye\": {\n \"x\": 0,\n \"y\": 0,\n \"size\": 0,\n \"weight\": 100,\n \"rotation\": 0\n },\n \"rightEye\": {\n \"x\": 0,\n \"y\": 0,\n \"size\": 0,\n \"weight\": 100,\n \"rotation\": 0\n },\n \"yawServo\": {\n \"angle\": 0,\n \"speed\": 925\n },\n \"pitchServo\": {\n \"angle\": 450,\n \"speed\": 925\n },\n \"leftRgbColor\": \"#AAAAAA\",\n \"rightRgbColor\": \"#AAAAAA\",\n \"durationMs\": 651\n },\n {\n
|
||
|
|
)
|