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
from socket import * | |
from mote import Mote | |
import signal | |
import sys | |
def signal_handler(signal, frame): | |
recvSocket.close() | |
mote.clear() | |
mote.show() | |
sys.exit(0) |
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 "Adafruit_LEDBackpack.h" | |
#ifndef _BV | |
#define _BV(bit) (1<<(bit)) | |
#endif | |
class LEDBackpack : public Adafruit_LEDBackpack | |
{ | |
public: | |
// Convenience function to set a specific pixel. |
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 all board pins and bus interface. | |
import board | |
import busio | |
# Import the HT16K33 LED matrix module. | |
from adafruit_ht16k33 import matrix | |
import datetime | |
import random | |
import time |