diff --git a/README.md b/README.md index e8136a5..31e1244 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,10 @@ void loop() { ## History +**v1.13b: 13th June 2014 by JP Liew** +* added Sine Wave Example +* inserted license to example code + **v1.12b: 11th June 2014 by JP Liew** * added comments for SparkFun Logo * added Rotating Cube example by Jim Lindblom @ SparkFun Electronics diff --git a/examples/MicroViewDemo/MicroViewDemo.ino b/examples/MicroViewDemo/MicroViewDemo.ino index e1747d8..de3d5ca 100644 --- a/examples/MicroViewDemo/MicroViewDemo.ino +++ b/examples/MicroViewDemo/MicroViewDemo.ino @@ -1,3 +1,20 @@ +/* + MicroView Arduino Library + Copyright (C) 2014 GeekAmmo + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ #include #include diff --git a/examples/MicroViewSineWave/MicroViewSineWave.ino b/examples/MicroViewSineWave/MicroViewSineWave.ino new file mode 100644 index 0000000..41e6bd3 --- /dev/null +++ b/examples/MicroViewSineWave/MicroViewSineWave.ino @@ -0,0 +1,60 @@ +/* + MicroView Sine Wave Example + Copyright (C) 2014 GeekAmmo + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ +#include + +void setup() { + uView.begin(); + uView.clear(PAGE); +} + +void loop () { + int i; + float rad,srad, x,y; + int amp=20; + int nPhase=360; + + for(i=0; i. +*/ #include MicroViewWidget *widget[4]; // declaring an array of 4 MicroViewWidget