2021-07-16 16:01:55 +00:00
|
|
|
#pragma once
|
|
|
|
#include "pico/stdlib.h"
|
|
|
|
|
|
|
|
#include "apa102.hpp"
|
|
|
|
#include "ws2812.hpp"
|
|
|
|
|
|
|
|
namespace plasma {
|
2021-08-19 13:12:56 +00:00
|
|
|
namespace plasma2040 {
|
2021-08-19 13:22:43 +00:00
|
|
|
const uint LED_R = 16;
|
|
|
|
const uint LED_G = 17;
|
|
|
|
const uint LED_B = 18;
|
2021-07-16 16:01:55 +00:00
|
|
|
|
2021-08-19 13:22:43 +00:00
|
|
|
const uint BUTTON_A = 12;
|
|
|
|
const uint BUTTON_B = 13;
|
2021-07-16 16:01:55 +00:00
|
|
|
|
2021-08-19 13:22:43 +00:00
|
|
|
const uint USER_SW = 23;
|
2021-08-18 11:18:25 +00:00
|
|
|
|
2021-08-19 13:22:43 +00:00
|
|
|
const uint CLK = 14; // Used only for APA102
|
|
|
|
const uint DAT = 15; // Used for both APA102 and WS2812
|
2021-08-18 11:18:25 +00:00
|
|
|
|
2021-08-19 14:16:40 +00:00
|
|
|
const uint CURRENT_SENSE = 29; // The pin used for current sensing
|
2021-08-18 11:18:25 +00:00
|
|
|
|
2021-08-19 13:22:43 +00:00
|
|
|
constexpr float ADC_GAIN = 50;
|
|
|
|
constexpr float SHUNT_RESISTOR = 0.015f;
|
2021-08-19 13:12:56 +00:00
|
|
|
}
|
2021-07-16 16:01:55 +00:00
|
|
|
}
|