Hi, I'm trying to select the play source of my module SOMO II with an Arduino Leonardo, but I think I'm not doing the serial communitacion correctly. The idea is that depending of the combination of the inputs, a certain track is selected.
This is my code:
Is this right? Should I use Serial.print(val,HEX) instead?
Also the Documentation says that there isn't any Parity bit or Flow Control. Does the standard serial TTL commutication of Arduino satisfies this?
This is my code:
Code:
void setup() { Serial1.begin(9600) } void loop() { if(...) //A confirmation button is pressed { if (....) //Input combination { byte Track[8] = {0x7E, 0x0F, 0x00, 0x01, 0x01, 0xFF, 0xFC, 0xEF}; //Track1 Serial1.write(Track,8); } if (....) { byte Track[8] = {0x7E, 0x0F, 0x00, 0x01, 0x02, 0xFF, 0xFC, 0xEF}; //Track2 Serial1.write(Track,8); } } }
Also the Documentation says that there isn't any Parity bit or Flow Control. Does the standard serial TTL commutication of Arduino satisfies this?
Comment