This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************************ | |
M5StackFire I2C Scanner | |
The M5StackFire has a connector for I2C devices. | |
This program scans the addresses 1-127 continuosly and shows | |
the devices found on the TFT. | |
The M5Stack fire has two internal I2C devices at address 0x68 and 0x75. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SPI.h> | |
const int slaveSelectPin = D8; | |
uint8_t buffer[16][16][3] = { 0 }; | |
unsigned long step = 0; | |
//------------------demos------------------------ | |
void gradient(uint8_t x, uint8_t y, unsigned long step) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import sys | |
import os | |
print ".--=============--------------=============--." | |
print "| Welcome to Image Matrix Maker! |" | |
print ".--=============--------------=============--." | |
yeswords = ["yes", "y", "ya", "ok", "okay"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/****************************************************** | |
Arduino EEPROM Read-Write Test | |
by Ted Hayes 2012 | |
[email protected] | |
Demonstrates the usage of the EEPROM Library for checking the state of a single value, | |
changing it, and resetting it. To use: | |
1) Put a momentary switch between ground and pin 11 on your Arduino. |