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 <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <time.h> | |
#include <wiringPi.h> | |
#include <pcf8574.h> | |
#include <lcd.h> |
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
// PieTest | |
/** | |
* @param float radius Radius of the pie | |
* @param float angle Angle (size) of the pie to slice | |
* @param float height Height (thickness) of the pie | |
* @param float spin Angle to spin the slice on the Z axis | |
*/ | |
module pie(radius, angle, height, spin=0) { | |
// submodules |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
from mpd import MPDClient | |
from mpd import ConnectionError as MPDConnectionError | |
from time import sleep | |
import logging | |
# Timeout |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
from mpd import MPDClient | |
from mpd import ConnectionError as MPDConnectionError | |
from time import sleep | |
import logging | |
# Timeout |
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 "Keyboard.h" | |
const int buttonPin = 11; // input pin for pushbutton | |
int previousButtonState = HIGH; // for checking the state of a pushButton | |
int counter = 0; // button push counter | |
int prevTime = 0; | |
void setup() { | |
// make the pushButton pin an input: | |
pinMode(buttonPin, INPUT); |