Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ipst.h>
- int x;
- void setup(){}
- void loop(){
- x=analog(1);
- glcd(0,0,"%d ",x);
- if(x<100){
- out(16,1);out(17,1);out(18,1);
- }
- else if(x>=100 && x<200){
- out(16,0);out(17,1);out(18,1);
- }
- else if(x>=200 && x<300){
- out(16,0);out(17,0);out(18,1);
- }
- else {
- out(16,0);out(17,0);out(18,0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement