mirror of
https://github.com/DashyFox/MusicRing.git
synced 2025-12-16 08:09:42 +00:00
wrapper
This commit is contained in:
@ -2,8 +2,8 @@
|
||||
//#include <avr/iom328.h>
|
||||
|
||||
#include "modules/LED_Ring.h"
|
||||
#include "implement/Display__Adafruit_SSD1306.h"
|
||||
#include "misc/bitmaps.h"
|
||||
#include "implement/Display__Adafruit_SSD1306.h"
|
||||
|
||||
LED_Ring_PINOUT pinout { 5, 6, 7, 8, 9 };
|
||||
|
||||
@ -16,7 +16,7 @@ void setup() {
|
||||
ring.begin();
|
||||
screen.begin();
|
||||
|
||||
screen.adafruit->drawBitmap(0, 0, DashyFox_logo, 128, 32, WHITE);
|
||||
screen.drawBitmap(0, 0, DashyFox_logo, 128, 32);
|
||||
screen.adafruit->display();
|
||||
|
||||
}
|
||||
@ -26,11 +26,9 @@ ISR(TIMER1_COMPA_vect) { ring.isr(); }
|
||||
void loop() {
|
||||
|
||||
static uint32_t tmr;
|
||||
static uint8_t arr[6] = { 0x3f >> 1, 0xf0 ,0x7f >> 3, 0xf8, 0x3f >> 1, 0xf0 };
|
||||
static uint8_t arr2[6] = { 0 };
|
||||
static bool f = false;
|
||||
if (millis() - tmr > 350) {
|
||||
screen.adafruit->drawBitmap(105, 23, arr, 16, 3, f);
|
||||
screen.drawBitmap(105, 23, f ? DashyFox_logo_point_1 : DashyFox_logo_point_2, 16, 3);
|
||||
screen.adafruit->display();
|
||||
tmr = millis();
|
||||
f = !f;
|
||||
|
||||
Reference in New Issue
Block a user