get_started_with_respeaker icon indicating copy to clipboard operation
get_started_with_respeaker copied to clipboard

Control all pixel leds and Set color of one pixel!!!

Open reality123 opened this issue 6 years ago • 1 comments

I want to control one pixel led by controlling arduino . but i only can cntrol all pixel leds . The procedure for controlling all lights is as follows. I'm not sure this is incorrect because I always have failure in running .

if mic.wakeup('respeaker'):
print('Wake up')
data = mic.listen()
try:
text = bing.recognize(data) if text:
print('Recognized %s' % text) if 'turn red' in text: print('turn red !') pixel_ring .set_color(rgb=0xff0000)

when i want to control one pixel , I think I should add the necessary procedures in this 'pixels_pattern.ino' Program section: for (int i = 0; i < PIXELS_NUM; i++) { pixels->set_color(i, Pixels::RGB(0, 0, i * 255 / (PIXELS_NUM - 1))); } pixels->update();

but i don't know how to change it and How to transfer the program of controlling LED on arduinovia Python?I don't know too much about the use of SPI.

Can anyone discuss with me to help me solve this problem?

reality123 avatar Apr 25 '18 05:04 reality123

Did you solve this issue?

CaptStephan avatar Jan 28 '19 23:01 CaptStephan