Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Slider.h
00001 #include "mbed.h" 00002 #include "stm32746g_discovery_lcd.h" 00003 00004 #define maxWidth 480 00005 #define maxHeight 272 00006 00007 class Slider 00008 { 00009 public: 00010 Slider(uint16_t x, uint16_t y, uint16_t w, uint16_t h, uint32_t c1, uint32_t c2); 00011 void Move(uint16_t x, uint16_t y); 00012 uint16_t GetValue(void); 00013 void SetValue(uint16_t v); 00014 void Show(void); 00015 ~Slider(void); 00016 00017 private: 00018 uint16_t xpos; 00019 uint16_t ypos; 00020 uint16_t width; 00021 uint16_t height; 00022 uint16_t value; 00023 uint32_t color1; 00024 uint32_t color2; 00025 }; 00026
Generated on Thu Jul 14 2022 02:48:08 by
1.7.2