comparison projects/basic_blink/render.cpp @ 76:ff0f776415e4

Fixed basic_blink (was blinking for 11.25us only)
author Giulio Moro <giuliomoro@yahoo.it>
date Fri, 17 Jul 2015 21:05:52 +0100
parents 8bd351ca8b46
children 92145ba7aabf
comparison
equal deleted inserted replaced
75:8bd351ca8b46 76:ff0f776415e4
39 if(status==GPIO_LOW) //toggle the status 39 if(status==GPIO_LOW) //toggle the status
40 status=GPIO_HIGH; 40 status=GPIO_HIGH;
41 else 41 else
42 status=GPIO_LOW; 42 status=GPIO_LOW;
43 pinModeFrame(context, n, P8_07, OUTPUT); 43 pinModeFrame(context, n, P8_07, OUTPUT);
44 digitalWriteFrameOnce(context, n, P8_07, status); //write the status to the LED 44 digitalWriteFrame(context, n, P8_07, status); //write the status to the LED
45 } 45 }
46 count++; 46 count++;
47 } 47 }
48 } 48 }
49 49