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

temp.h

Committer:
sinrab
Date:
2014-11-22
Revision:
3:791cf9a867d1
Parent:
0:ed1ba99f7b14
Child:
4:776f59129c24

File content as of revision 3:791cf9a867d1:

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;
            }
        }