Badger

Dependencies:   mbed

Committer:
thomasmorris
Date:
Sun Oct 15 15:14:14 2017 +0000
Revision:
0:32d2061dd66d
badger;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thomasmorris 0:32d2061dd66d 1 #include "mbed.h"
thomasmorris 0:32d2061dd66d 2
thomasmorris 0:32d2061dd66d 3 Serial pc(USBTX,USBRX);
thomasmorris 0:32d2061dd66d 4 Ticker Mushroom;
thomasmorris 0:32d2061dd66d 5
thomasmorris 0:32d2061dd66d 6 void Mushroom_Print(){
thomasmorris 0:32d2061dd66d 7 printf("Mushroom Mushroom ");
thomasmorris 0:32d2061dd66d 8 }
thomasmorris 0:32d2061dd66d 9
thomasmorris 0:32d2061dd66d 10 int main() {
thomasmorris 0:32d2061dd66d 11 Mushroom.attach(&Mushroom_Print,2);
thomasmorris 0:32d2061dd66d 12 pc.baud(9600);
thomasmorris 0:32d2061dd66d 13 while(1) {
thomasmorris 0:32d2061dd66d 14 printf("Badger Badger Badger Badger Badger Badger Badger Badger Badger Badger Badger Badger Badger Badger");
thomasmorris 0:32d2061dd66d 15 }
thomasmorris 0:32d2061dd66d 16 }