Files
-
hardware / boards / knobs-controller / eagle / KnobsController.brd
-
hardware / boards / knobs-controller / eagle / KnobsController.sch
-
hardware / boards / knobs-controller / KnobsController_v1.1 / KnobsController_1.sch
-
hardware / boards / knobs-controller / KnobsController_v1.1 / KnobsController_2.sch
-
hardware / boards / knobs-controller / KnobsController_v1.1 / KnobsController_v1.1.kicad_pcb
-
hardware / boards / knobs-controller / KnobsController_v1.1 / KnobsController_v1.1.sch
-
hardware / boards / mainboard / eagle / kryon-ver2.1-final.brd
-
hardware / boards / mainboard / eagle / kryon-ver2.1-final.sch
-
hardware / boards / mainboard / Mainboard / Audio-in.sch
-
hardware / boards / mainboard / Mainboard / Audio-out.sch
-
hardware / boards / mainboard / Mainboard / codec.sch
-
hardware / boards / mainboard / Mainboard / kryon-ver2.1-final_1.sch
-
hardware / boards / mainboard / Mainboard / kryon-ver2.1-final_2.sch
-
hardware / boards / mainboard / Mainboard / kryon-ver2.1-final_3.sch
-
hardware / boards / mainboard / Mainboard / Mainboard.sch
-
hardware / boards / mainboard / Mainboard / Midi.sch
-
hardware / boards / mainboard / Mainboard / Stereo-out.sch
-
hardware / boards / teensy-uSD-adapter / uSD_extender_male.brd
-
hardware / boards / teensy-uSD-adapter / uSD_extender_male.sch
-
hardware / boards / topbreakout / io_breakout-ver2.1.brd
-
hardware / boards / topbreakout / io_breakout-ver2.1.sch
Last update 5 years 2 months
by
Nic Newdigate
Filessoftwareexamplesaudioplayer | |
---|---|
.. | |
ID3Reader.h | |
JpegDecoder2.h | |
README.md | |
picojpeg.c | |
picojpeg.h | |
player.ino | |
tftprogressbar.h |
tftprogressbar.h#ifndef TFTPROGRESSBAR_H #define TFTPROGRESSBAR_H #include "Arduino.h" #include <Adafruit_GFX.h> class TFTProgressBar { public: TFTProgressBar(Adafruit_GFX &tft) : _tft(tft) { } void drawProgress(unsigned long numerator, unsigned long denominator) { unsigned long x = ((numerator/1000) * 128) / (denominator/1000); if (x != _lastProgress) { Serial.printf("%d -- %d %d\n", x, numerator/1000, denominator/1000); _tft.drawLine( 0, 120, x, 120, 0xFFFF); _tft.drawLine( x+1, 120, 127, 120, 0x0000); _lastProgress = x; } } private: unsigned _lastProgress = 0; Adafruit_GFX &_tft; }; #endif