Wyatt  1.0.1
wiringPi.cpp
1 #include "wiringPi.h"
2 #include <iostream>
3 
4 int wiringPiSetupSys(void) {
5  std::cout << "WiringPi Setup." << std::endl;
6  return 0;
7 }
8 
9 int wiringPiSetupGpio(void) {
10  std::cout << "WiringPi Setup." << std::endl;
11  return 0;
12 }
13 
14 int wiringPiSetup(void) {
15  std::cout << "WiringPi Setup." << std::endl;
16  return 0;
17 }
18 
19 void pinMode(int pin, int mode) {
20  std::cout << "Set pin mode: pin " << pin << " to mode: " << mode << std::endl;
21 }
22 
23 void digitalWrite(int pin, int value) {
24  std::cout << "Digital wrote pin " << pin << " " << value << std::endl;
25 }
26 
27 void pullUpDnControl(int pin, int pud) {
28  std::cout << "Changed pullup on pin " << pin << " " << pud << std::endl;
29 }
30 
31 int digitalRead(int pin) {
32  return HIGH;
33 }
34 
35 void pwmWrite(int pin, int value) {
36  std::cout << "PWM wrote pin " << pin << " " << value << std::endl;
37 
38 }
39 
40 void digitalWriteByte(int value) {
41 
42 }
43 
44 unsigned int millis(void) {
45  return (unsigned int) (time(0) * 1000);
46 }
47 
48 void delay(unsigned int howLong) {
49  std::cout << "Delaying " << howLong << " ms" << std::endl;
50 }
51 
52 void delayMicroseconds(unsigned int howLong) {
53  std::cout << "Delaying " << howLong << " us" << std::endl;
54 }