Files

copied

Scanning the repository...

Last update 5 years 10 months by Nic Newdigate
Filessoftwareexamplesmidirecorder
..
MidiWriter.cpp
MidiWriter.h
README.md
TFTPianoDisplay.cpp
TFTPianoDisplay.h
t36-midi-tft.ino
TFTPianoDisplay.h
#ifndef TFTPianoDisplay_h #define TFTPianoDisplayr_h #include "Arduino.h" #include <SD.h> #include <Adafruit_GFX.h> // Core graphics library #include <Adafruit_ST7735.h> // Hardware-specific library class TFTPianoDisplay { public: TFTPianoDisplay(Adafruit_GFX &tft, unsigned int octaves, unsigned int startOctave); void setPosition(byte x, byte y); void keyDown(byte key); void keyUp(byte key); void drawPiano(); bool displayNeedsUpdating(); private: Adafruit_GFX *_tft; byte _x, _y; byte _height, _width; byte _offsetKeyZero; unsigned int _octaves, _startOctave; bool _shouldUpdatePiano = true; byte _keysWhichArePressed[22]; bool isKeyPressed(byte key); bool isAnyKeyPressed(byte key); }; #endif
Report a bug