Data Sheet
IRONBOY USER MANUAL Ver.1.03_Eng
57
- recv_buf_head : Header Address of Feedback request data
ChestFullColor(uint8_t _bright,uint8_t _red,uint8_t _green, uint8_t _blue)
Function : LED Color output
Parameter
- _bright : All LED's brightness (Range: 0 ~ 255)
- _red : Red Color (Range: 0 ~ 255)
- _green : Green color (Range: 0 ~ 255)
- _blue : Blue color (Range: 0 ~ 255)
playSound(uint8_t _octave,uint8_t _syllable, uint8_t _beat)
Function : Piezo sound output
Parameter
- _octave : Octave number (Range: 1 ~ 7)
- _syllable : Tone number (Range: 0 ~ 11)
- _beat : Tone length (Range: 1 ~ 255, Unit: 4 msec)
※ Octave number Definition
-
※ Tone number Definition
Index
Note Tone
0 C Do
1 C# Do#
2 D Re
3 D# Re#
4 E Mi
5 F Fa
6 F# Fa#
7 G Sol
8 G# Sol#
9 A La
10 A# La#
11 B Si
- #define PACKET_feedback_activity_property 120
- #define PACKET_feedback_motion_step 121
FeedBackActivityProperty (uint8_t motion, protocol_store_activity_property_t *recv_buf)
protocol_store_activity_property_t Parameter
- motion : Motion number (Range: 0 ~ 199)
- step_size : Motion Step size (Range: 0 ~ 23)
- repeat_start_step : Repeat start step (Range: 1 ~ 22)
- repeat_end_step : Repeat end Step (Range: 1 ~ 22)
- repeat_acceleration_rate : Acceleration rate of Repeat section (Range: 100 ~ 250, Unit: 0.01 x)
- repeat_acceleration_count : Acceleration count of Repeat section (Range: 0 ~ 15)
- next_motion : Next Motion (Range: 0 ~ 200, No Motion: 255)