The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
coding dice in basic for picaxe chip
Posted by: CampGareth | May 12, 2009 @ 2:59pm
Other Code
[
Download
]
start: high 2 if pin3= 1 then display low 2 high 0 if pin3= 1 then display low 0 high 1 high 2 if pin3= 1 then display low 2 high 4 if pin3= 1 then display high 2 if pin3= 1 then display low 2 high 0 if pin3= 1 then display low 4 low 0 low 1 goto start Display: pause 3000 goto start
Syntax Highlighting
[
Open in new window
]
Author Comments
the dice is wired so that 2 is the central light, 1 are the lights at the bottom of the left row and top of the right row, 0 is the middle lights on both sides, 4 is the lights at the top of the left row, and bottom of the right row.
Rating
4.35 / 8
178 Votes
http://codebin.yi.org/278
page generated in 0.00 seconds