Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18 lines (15 sloc)
615 Bytes
This file contains 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 "ets_sys.h" | |
#include "osapi.h" | |
#include "gpio.h" | |
#include "os_type.h" | |
#define DATA_PIN 1 | |
#define SHIFT_PIN 3 | |
#define UPDATE_PIN 0 | |
#define FPS 64 | |
void ICACHE_FLASH_ATTR update_output(); | |
void ICACHE_FLASH_ATTR turn_all_on(bool on); | |
void ICACHE_FLASH_ATTR shift_regs(); | |
void ICACHE_FLASH_ATTR write_data_bit(bool high); | |
void ICACHE_FLASH_ATTR shift_in_bit(bool on); | |
void ICACHE_FLASH_ATTR display_single_dot(char xPos, char yPos); | |
void ICACHE_FLASH_ATTR display_full_matrix(long long yellow, long long red); |