sketchbook
|
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include <wiringPi.h>
#include <piFace.h>
Macros | |
#define | TRUE (1==1) |
#define | FALSE (1==2) |
#define | NUM_LEDS 8 |
#define | PIFACE 200 |
Functions | |
void | setup (void) |
void | introLeds (void) |
void | winningLeds (void) |
void | chargeCapacitor (void) |
void | dischargeCapacitor (void) |
void | ledBargraph (double value, int topLedOn) |
void | ledOnAction (void) |
void | ledOffAction (void) |
int | main (void) |
Variables | |
const int | ledMap [NUM_LEDS] |
const double | vBatt = 9.0 |
const double | capacitor = 0.001 |
const double | rCharge = 2200.0 |
const double | rDischarge = 68000.0 |
const double | timeInc = 0.01 |
double | vCharge |
double | vCap |
double | vCapLast |
#define FALSE (1==2) |
#define NUM_LEDS 8 |
#define PIFACE 200 |
#define TRUE (1==1) |
void chargeCapacitor | ( | void | ) |
void dischargeCapacitor | ( | void | ) |
void introLeds | ( | void | ) |
void ledBargraph | ( | double | value, |
int | topLedOn | ||
) |
void ledOffAction | ( | void | ) |
void ledOnAction | ( | void | ) |
int main | ( | void | ) |
void setup | ( | void | ) |
Arduino IDE: put your setup code here, to run once.
void winningLeds | ( | void | ) |
const double capacitor = 0.001 |
const int ledMap[NUM_LEDS] |
const double rCharge = 2200.0 |
const double rDischarge = 68000.0 |
const double timeInc = 0.01 |
const double vBatt = 9.0 |
double vCap |
double vCapLast |
double vCharge |