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
# CircuitPython 2.0.0 - Trinket M0 | |
# 3 led bounce: | |
# LED anodes to D0, D1 & D2 | |
# cathodes common thru 330 Ω resistor to GND | |
# scruss - 2017-10 | |
import board | |
import digitalio | |
import time |
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
# CircuitPython 2.0.0 - Trinket M0 | |
# 16 neopixels on D4 | |
import board | |
import neopixel | |
import adafruit_dotstar as dotstar | |
import time | |
# built-in dotstar | |
dot = dotstar.DotStar(board.APA102_SCK, board.APA102_MOSI, 1, |
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
/* | |
Teensy 4×3 keypad USB keyboard | |
scruss - 2017-10 | |
- based on @file HelloKeypad.pde, part of Keypad library | |
- with notes from Sparkfun part COM-08653 datasheet | |
http://cdn.sparkfun.com/datasheets/Components/General/SparkfunCOM-08653_Datasheet.pdf | |
- modified for Teensy via | |
“Using USB Keyboard” <https://www.pjrc.com/teensy/td_keyboard.html> | |
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
# CircuitPython 2.0.0 - Trinket M0 | |
# 24 + 12 RGB pixel rings on D4 | |
# scruss - 2017-11 | |
import board | |
import neopixel | |
import adafruit_dotstar as dotstar | |
import time | |
# built-in dotstar |
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
1 PRINT "DIRECT YOUR DOG TO ANY OF THE FOLLOWING FILES:" | |
2 PRINT "1=KEYBOARD,2=LINE PRINTER,3=HIGH SPEED PUNCH" | |
3 PRINT "WHICH ONE";\INPUT A | |
4 IF A=1 GOTO 6\IF A=2 GOTO 7\IF A=3 GOTO 5\GOTO 3 | |
5 FILEV #1:"PTP:"\GOTO 10 | |
6 FILEV #1:"TTY:"\GOTO 10 | |
7 FILEV #1:"LPT:"\GOTO 10 | |
9 REMARKABLY TRANSLATED TO OS8 BASIC BY KAY R. FISHER ...DEC | |
10 PRINT #1: | |
20 PRINT #1: |
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
echo 'aaaaiiiiiiiiiiiiiiiieeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee!!!!!!!!!!!!!!!!!!!!!!111!!!!!!!!!!!!' | lolcat -f | ansi2html -ip | sed 's,</span>,[/color],g;s/<span style="color: \(#......\)">/[color="\1"]/g;' |
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
10 ' British Council Tile / Bus Fabric Sim. z/x change tile. Space = new cols | |
20 ON BREAK GOSUB 160: MODE 1 | |
30 DEF FNp=INT(RND*4) | |
40 DEF FN i=INT(RND*26) | |
50 c=207 | |
60 o$="": i$=INKEY$ | |
70 IF i$=" " THEN GOSUB 170 | |
80 IF i$="z" THEN c=c-1: GOSUB 180 | |
90 IF i$="x" THEN c=c+2: GOSUB 180 | |
100 IF i$="c" THEN GOSUB 180 |
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
1L=0:REP.L=L+3:MO.4:DR.1279,0:DR.1279,452:MOVE1279,572:DR.1279,1023:DR.0,1023:F.I=1TOL:V.31,RND(32)+5,RND(31),42,30:N.:P.(L-3)/3:X=0:Y=512:REP.PL.69,X,Y:X=X+4:Y=Y-(INKEY-74+.5)*8:U.PO.X,Y)=1ORX=1280:U.X<1280:V.7:REP.U.INKEY-99:RUN |
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
10MODE 2 | |
20REPEAT | |
30CLS | |
40VDU 23,1,0;0;0;0; | |
50VDU 23,224,0,14,12,104,16,28,8,0 | |
60VDU 23,225,0,112,48,22,8,56,16,0 | |
70VDU 23,226,0,248,32,116,126,116,112,0 | |
80VDU 23,227,0,31,4,46,126,46,14,0 | |
90VDU 23,228,0,102,255,255,255,255,255,255 | |
100VDU 23,229,255,255,0,0,0,0,0,0 |