Linear stabilizer voltage and current on lm358 and transictor. Digital control and indication on stm32f103rbt and tft01-22sp (ili9341). https://www.youtube.com/watch?v=DLC3KEtlr9I https://radiokot.ru/forum/viewtopic.php?f=11&t=112440
Dependencies: mbed TFT_fonts SPI_TFT_ILI9341 beep _24LCXXX
Diff: temp.h
- Revision:
- 3:791cf9a867d1
- Parent:
- 0:ed1ba99f7b14
- Child:
- 4:776f59129c24
--- a/temp.h Sat Nov 01 18:20:43 2014 +0000 +++ b/temp.h Sat Nov 22 18:51:39 2014 +0000 @@ -0,0 +1,34 @@ +if (mline2==1) { + int i=0; + if (buttonUp==0 & brightness<1) { + if(brightness >= 0.09f & i==0) { + brightness+=0.1f; + pinbrightness=brightness; + i=1; + } + if(brightness < 0.09f & i==0) { + brightness+=0.01f; + pinbrightness=brightness; + i=1; + } + + } + + if (buttonDown==0 & brightness>0.01f) { + if(brightness <= 0.1f & i==0) { + brightness-=0.01f; + pinbrightness=brightness; + i=1; + } + if(brightness > 0.1f & i==0) { + brightness-=0.1f; + pinbrightness=brightness; + i=1; + } + } + + if (buttonEnter==0) { + mline2=0; + pmenu=0; + } + } \ No newline at end of file