CheeseBoard
A library for use with the CheeseBoard Cheddar platform
CheddarV0Config.h
1 #pragma once
2 
5 #include <Arduino.h>
6 #include <Adafruit_NeoPixel.h>
7 #include <stdint.h>
8 
9 const uint8_t ROT_PUSH_PIN = D8;
10 const uint8_t ROT_A_PIN = D7;
11 const uint8_t ROT_B_PIN = D6;
12 
13 const uint8_t CBOLED_SDA_PIN = D5;
14 const uint8_t CBOLED_SCK_PIN = D4;
15 #define CBOLED_CLASS U8G2_SSD1306_128X64_NONAME_F_SW_I2C
16 #define CBOLED_MESSAGE_FONT u8g2_font_helvR08_tf
17 const uint8_t CBOLED_MESSAGE_FONT_HEIGHT = 8;
18 const uint8_t CBOLED_MESSAGE_FONT_VSEP = 3;
19 
20 const uint8_t RGBLED_DATA_PIN = D3;
21 const uint8_t RGBLED_COUNT = 5;
22 const uint8_t RGBLED_BRIGHTNESS = 16;
23 const float RGBLED_CORRECTION = 25.4;
24 #define RGBLED_TYPE (NEO_GRB + NEO_KHZ800)
25 
26 const uint8_t HC12_RX_PIN = D2;
27 const uint8_t HC12_TX_PIN = D1;
28 const uint8_t HC12_SET_PIN = D0;
29 
30 #define TEXTLISTITEM_FONT u8g2_font_helvR08_tf
31 const uint8_t TEXTLISTITEM_FONT_HEIGHT = 8;
32 const uint8_t TEXTLISTITEM_FONT_PADDING = 1;
33 const uint8_t TEXTLISTITEM_HEIGHT = TEXTLISTITEM_FONT_HEIGHT + 2*TEXTLISTITEM_FONT_PADDING + 2;
34 
35 // This should be defined only when using the "version 0", preproduction
36 // boards with the button hack. For production boards, delete this
37 // BOARD_V0 #define.
38 #define BOARD_V0 true
39 
40