fix: color format

This commit is contained in:
Luca 2024-04-20 19:48:50 +02:00
parent 4c242c2983
commit 0b9c5db605
1 changed files with 3 additions and 2 deletions

View File

@ -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));