@ -29,10 +29,10 @@ struct cRGB {
# define CRGB(r,g,b) (cRGB){b, g, r}
# define CRGB(r,g,b) (cRGB){b, g, r}
# include "kaleidoscope/driver/keyscanner/A VR .h"
# include "kaleidoscope/driver/keyscanner/A Tmega .h"
# include "kaleidoscope/driver/led/Base.h"
# include "kaleidoscope/driver/led/Base.h"
# include "kaleidoscope/driver/bootloader/avr/Caterina.h"
# include "kaleidoscope/driver/bootloader/avr/Caterina.h"
# include "kaleidoscope/device/AT M ega32U4Keyboard.h"
# include "kaleidoscope/device/AT m ega32U4Keyboard.h"
namespace kaleidoscope {
namespace kaleidoscope {
namespace device {
namespace device {
@ -61,20 +61,20 @@ class ImagoLEDDriver : public kaleidoscope::driver::led::Base<ImagoLEDDriverProp
static void twiSend ( uint8_t addr , uint8_t Reg_Add , uint8_t Reg_Dat ) ;
static void twiSend ( uint8_t addr , uint8_t Reg_Add , uint8_t Reg_Dat ) ;
} ;
} ;
struct ImagoProps : kaleidoscope : : device : : AT M ega32U4KeyboardProps {
struct ImagoProps : kaleidoscope : : device : : AT m ega32U4KeyboardProps {
struct KeyScannerProps : public kaleidoscope : : driver : : keyscanner : : A VR Props {
struct KeyScannerProps : public kaleidoscope : : driver : : keyscanner : : A Tmega Props {
A VR _KEYSCANNER_PROPS(
A TMEGA _KEYSCANNER_PROPS(
ROW_PIN_LIST ( { PIN_F6 , PIN_F5 , PIN_F4 , PIN_F1 , PIN_F0 } ) ,
ROW_PIN_LIST ( { PIN_F6 , PIN_F5 , PIN_F4 , PIN_F1 , PIN_F0 } ) ,
COL_PIN_LIST ( { PIN_B2 , PIN_B7 , PIN_E2 , PIN_C7 , PIN_C6 , PIN_B6 , PIN_B5 , PIN_B4 , PIN_D7 , PIN_D6 , PIN_D4 , PIN_D5 , PIN_D3 , PIN_D2 , PIN_E6 , PIN_F7 } )
COL_PIN_LIST ( { PIN_B2 , PIN_B7 , PIN_E2 , PIN_C7 , PIN_C6 , PIN_B6 , PIN_B5 , PIN_B4 , PIN_D7 , PIN_D6 , PIN_D4 , PIN_D5 , PIN_D3 , PIN_D2 , PIN_E6 , PIN_F7 } )
) ;
) ;
} ;
} ;
typedef kaleidoscope : : driver : : keyscanner : : A VR < KeyScannerProps > KeyScanner ;
typedef kaleidoscope : : driver : : keyscanner : : A Tmega < KeyScannerProps > KeyScanner ;
typedef ImagoLEDDriverProps LEDDriverProps ;
typedef ImagoLEDDriverProps LEDDriverProps ;
typedef ImagoLEDDriver LEDDriver ;
typedef ImagoLEDDriver LEDDriver ;
typedef kaleidoscope : : driver : : bootloader : : avr : : Caterina BootLoader ;
typedef kaleidoscope : : driver : : bootloader : : avr : : Caterina BootLoader ;
} ;
} ;
class Imago : public kaleidoscope : : device : : AT M ega32U4Keyboard< ImagoProps > {
class Imago : public kaleidoscope : : device : : AT m ega32U4Keyboard< ImagoProps > {
public :
public :
void setup ( ) ;
void setup ( ) ;
} ;
} ;