add schematic
This commit is contained in:
+2
-2
@@ -1,2 +1,2 @@
|
|||||||
/build/**/*
|
/*/**/*
|
||||||
/external/**/*
|
!/html/**/*
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ You will need the following hardware to make the device:
|
|||||||
- light dependent resistor such as GL5528 (specific part number may vary)
|
- light dependent resistor such as GL5528 (specific part number may vary)
|
||||||
- 10k ohm resistor (resistance value may vary)
|
- 10k ohm resistor (resistance value may vary)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
You will need to cut the USB extension in half and connect the wires from the
|
You will need to cut the USB extension in half and connect the wires from the
|
||||||
female end to the Raspberry Pi Pico (2). The default configuration is to attach
|
female end to the Raspberry Pi Pico (2). The default configuration is to attach
|
||||||
the USB's green wire to pin 1/GP0 and USB's white wire to pin 2/GP1. You will
|
the USB's green wire to pin 1/GP0 and USB's white wire to pin 2/GP1. You will
|
||||||
|
|||||||
@@ -312,8 +312,6 @@ void parse_colors(char * data, uint16_t len) {
|
|||||||
if (token != NULL) {
|
if (token != NULL) {
|
||||||
// first string is the RGB color code
|
// first string is the RGB color code
|
||||||
uint8_t red, green, blue;
|
uint8_t red, green, blue;
|
||||||
// sscanf(token, "%2x%2x%2x", &red, &green, &blue);
|
|
||||||
// sscanf causes Pico 1 to crash
|
|
||||||
red = hexbyte(token);
|
red = hexbyte(token);
|
||||||
green = hexbyte(token+2);
|
green = hexbyte(token+2);
|
||||||
blue = hexbyte(token+4);
|
blue = hexbyte(token+4);
|
||||||
|
|||||||
@@ -196,5 +196,4 @@ bool load_rgb_config(void);
|
|||||||
#error "Unsupported device. Expected RP2040 or RP2350."
|
#error "Unsupported device. Expected RP2040 or RP2350."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+14478
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 263 KiB |
Reference in New Issue
Block a user