3a09daeab2
- [x] Move project to platformIO - [x] Bug rectangle on screen when 1milion shares - [x] Bug memory leaks - [x] Bug Reboots when received JSON contains some null values - Readme update with build troubleshooting TODO - [ ] Improve hashrate using Blockstream Jade miner code - [ ] Add blockHeight to screen - [ ] Add new screen with global mining stats - [ ] Add support to control BM1397
22 lines
520 B
C
22 lines
520 B
C
|
|
// This is the command sequence that initialises the ST7789 driver
|
|
|
|
// Configure ST7789 display
|
|
|
|
{
|
|
static const uint8_t PROGMEM
|
|
st7789[] = {
|
|
8,
|
|
TFT_SLPOUT, TFT_INIT_DELAY, 255,
|
|
TFT_COLMOD, 1+TFT_INIT_DELAY, 0x55, 10,
|
|
TFT_MADCTL, 1, 0x00,
|
|
TFT_CASET, 4, 0x00, 0x00, 0x00, 0xF0,
|
|
TFT_PASET, 4, 0x00, 0x00, 0x00, 0xF0,
|
|
TFT_INVON, TFT_INIT_DELAY, 10,
|
|
TFT_NORON, TFT_INIT_DELAY, 10,
|
|
TFT_DISPON, TFT_INIT_DELAY, 255
|
|
};
|
|
|
|
commandList(st7789);
|
|
}
|
|
// End of ST7789 display configuration
|