The boards have access Pololu Maestro PWM.
Decided to "play" with the connection of low-power light bulbs.
When controlling a computer using the program Maestro Control Center to determine the parameters: start time 12, the period of 108 - at such parameters lamp lights. Changes in the period from 12 to 108 can control the lighting from minimum to maximum.
Now the question is how all the same to alter the command set of parameters.
Wrote this sequence, according to the documentation for the device Pololu:
Pololu protocol: 0xAA, device number, 0x0A, on time low bits, on time high bits, period low bits, period high bits
byte 0xAA #Start Byte
byte 0x01 #Device ID = 1
byte 0x0A #Command = Set PWM
byte $ ((TARGET1 & 0x7F)) #On time low bits
byte $ ((TARGET1 >> 7 & 0x7F)) #On time high bits
byte $ ((TARGET2 & 0x7F)) #Period low bits
byte $ ((TARGET2 >> 7 & 0x7F)) #Period high bits
}> $ DEVICE
TARGET1 - on time
TARGET2 - period
As input parameters are used: TARGET1 = 12 and TARGET2 = 108, but nothing happens.
Help solve the problem.
Along the way, tell me, how can the same set of enable and disable PWM?