Skip to content

Instantly share code, notes, and snippets.

View SimoDax's full-sized avatar

SimoDax SimoDax

  • Italy
View GitHub Profile
void spin()
{
for(t = 0; t < 600000 / (DELAY * 8); t++) //25000 = 10 min / (DELAY * 8) = number of cycles
for(i = 0; i < 8; i++){ //single full-step cycle
PORTB = lookup[i]; //here's where the magic happens :)
delay(DELAY);
}
PORTB = 0;
for(t = 0; t < 600000 / (DELAY * 8); t++) //25000 = 10 min / (DELAY * 8) = number of cycles
for(i = 0; i < 8; i++){ //single full-step cycle
void spin()
{
for(t = 0; t < 3; t++){ //3 = 10 min / (2 * 4096 * 8 * DELAY) = number of loops
for(int j = 0; j < 4096; j++){
for(i = 0; i < 8; i++){ //single full-step cycle
PORTB = lookup[i];
_delay_ms(DELAY);
}
}
for(int j = 0; j < 4096; j++){
@SimoDax
SimoDax / commedia.txt
Created December 7, 2016 12:32
Divina commedia in alfabeto farfallino
This file has been truncated, but you can view the full file.
INFERNO
Infefernofo: Cafantofo I
Nefel mefezzofo defel cafammifin difi nofostrafa vifitafa
mifi rifitrofovafaifi pefer ufunafa sefelvafa ofoscufurafa
chefe' lafa difirifittafa vifiafa eferafa smafarrifitafa.