| 
   
    MIDI Control Surface library for Arduino 
   | 
 
 
 
 
Go to the documentation of this file.
    8 #include "StaticSizeExtendedIOElement.hpp" 
   24 template <u
int8_t NumChips = 1>
 
   38     void begin()
 override { init(); }
 
   50         uint8_t row = pin / 8;
 
   51         uint8_t col = pin % 8;
 
   52         uint8_t rowgrp = row % 8;
 
   53         uint8_t rowmask = 1 << rowgrp;
 
   54         uint8_t colmask = 1 << col;
 
   55         return {row, col, rowgrp, rowmask, colmask};
 
   64         __attribute__((deprecated)) {
 
   73         __attribute__((deprecated)) {
 
   91         updateBufferedOutputRow(i);
 
  148         __attribute__((deprecated)) {
 
  166         __attribute__((deprecated)) {
 
  174         __attribute__((deprecated)) {
 
  189             if (dirty_rows & 0x80)
 
  190                 sendRowAll(row, buffer.data + row, 8);
 
  199     uint8_t dirty_rows = 0xFF;
 
  
void digitalWrite(pin_t pin, PinStatus_t val) override
Set the state of a given output pin.
 
void updateBufferedInputs() override
Read the physical state into the input buffers.
 
A base class for classes that control MAX7219 LED drivers.
 
void begin() override
Initialize.
 
int digitalRead(pin_t pin)
An ExtIO version of the Arduino function.
 
void updateBufferedOutputRow(IndexMask i)
 
uint16_t pin_t
The type for Arduino pins (and ExtendedIOElement pins).
 
#define AH_DIAGNOSTIC_POP()
 
void updateBufferedOutputs() override
Write the internal state to the physical outputs.
 
void digitalWrite(pin_t pin, PinStatus_t val)
An ExtIO version of the Arduino function.
 
static IndexMask pin2index(pin_t pin)
 
void pinMode(pin_t pin, PinMode_t mode) override __attribute__((deprecated))
The pinMode function is not implemented because the mode is OUTPUT by definition.
 
int digitalReadBuffered(pin_t pin) override
Get the current state of a given output.
 
An array wrapper for easy copying, comparing, and iterating.
 
MAX7219(pin_t loadPin)
Create a MAX7219 ExtendedIOElement.
 
void pinModeBuffered(pin_t pin, PinMode_t mode) override __attribute__((deprecated))
The pinMode function is not implemented because the mode is OUTPUT by definition.
 
uint16_t analog_t
The type returned from analogRead and similar functions.
 
A class for LED outputs using the MAX7219 LED display driver.
 
A class for ExtendedIOElements with a fixed size.
 
Array< uint8_t, 8 *NumChips > buffer
 
analog_t analogRead(pin_t pin) override __attribute__((deprecated))
The analogRead function is deprecated because a MAX7219 is always digital.
 
#define AH_DIAGNOSTIC_WERROR()
 
#define BEGIN_AH_NAMESPACE
 
void analogWrite(pin_t pin, analog_t val) override __attribute__((deprecated))
The analogWrite function is deprecated because a MAX7219 is always digital.
 
int digitalRead(pin_t pin) override
Get the current state of a given output.
 
void digitalWriteBuffered(pin_t pin, PinStatus_t val) override
Set the state of a given pin in the software buffer.
 
void analogWriteBuffered(pin_t pin, analog_t val) override __attribute__((deprecated))
The analogWrite function is deprecated because a MAX7219 is always digital.
 
analog_t analogReadBuffered(pin_t pin) override __attribute__((deprecated))
The analogRead function is deprecated because a MAX7219 is always digital.