EJEMPLO DE CÓDIGO DE MATRIZ
CÓDIGO EN ARDUINO BLOCKS BLOG ORIGINAL DEL CÓDIGO #include < SPI . h > #include < Wire . h > #include < Adafruit_GFX . h > #include < Adafruit_LEDBackpack . h > double i ; Adafruit_8x8matrix ledmatrix_1 = Adafruit_8x8matrix ( ) ; double math_random_int ( int a , int b ) { if ( a > b ) { int c = a ; a = b ; b = c ; } return ( double ) random ( a , b + 1 ) ; } static const uint8_t PROGMEM ledmatrix_data_sprite_face_happy [ ] PROGMEM = { B00000000 , B01100110 , B01100110 , B00000000 , B00000000 , B11000011 , B01100110 , B00111100 } ; static const uint8_t PROGMEM ledmatrix_data_sprite_face_sad [ ] PROGMEM = { B00000000 , B01100110 , B00100100 , B00000000 , B00111100 , B01100110 , B11000011 , B10000001 } ; static const uint8_t PROGMEM ledmatrix_data_sprite_face_angry [ ] PROGMEM = { B00000000 , B01000010 , B01100110 ...