fix: color format
This commit is contained in:
parent
4c242c2983
commit
0b9c5db605
|
@ -18,12 +18,13 @@ use panic_halt as _;
|
|||
const BUTTON_TIMEOUT: u64 = SystemTimer::TICKS_PER_SECOND / 10;
|
||||
|
||||
const COLORS: [[u8; 3]; 6] = [
|
||||
// G B R
|
||||
[0, 0, 1],
|
||||
[1, 0, 1],
|
||||
[1, 0, 0],
|
||||
[1, 1, 0],
|
||||
[0, 1, 0],
|
||||
[0, 1, 1],
|
||||
[0, 0, 1],
|
||||
[1, 0, 1],
|
||||
];
|
||||
|
||||
static BUTTON: Mutex<RefCell<Option<GpioPin<Input<PullUp>, 9>>>> = Mutex::new(RefCell::new(None));
|
||||
|
|
Loading…
Reference in New Issue