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)
|
||||
- 10k ohm resistor (resistance value may vary)
|
||||
|
||||

|
||||
|
||||
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
|
||||
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) {
|
||||
// first string is the RGB color code
|
||||
uint8_t red, green, blue;
|
||||
// sscanf(token, "%2x%2x%2x", &red, &green, &blue);
|
||||
// sscanf causes Pico 1 to crash
|
||||
red = hexbyte(token);
|
||||
green = hexbyte(token+2);
|
||||
blue = hexbyte(token+4);
|
||||
|
||||
@@ -196,5 +196,4 @@ bool load_rgb_config(void);
|
||||
#error "Unsupported device. Expected RP2040 or RP2350."
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
+14772
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 268 KiB |
Reference in New Issue
Block a user