mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 13:16:45 +00:00
Merge branch '0.4.0-dev' of http://github.com/fvanroie/hasp-lvgl into 0.4.0-dev
This commit is contained in:
commit
ffb732ce7f
@ -73,9 +73,7 @@ bool PosixDevice::get_backlight_power()
|
|||||||
|
|
||||||
void PosixDevice::update_backlight()
|
void PosixDevice::update_backlight()
|
||||||
{
|
{
|
||||||
#ifndef TARGET_OS_MAC
|
|
||||||
monitor_backlight(_backlight_power ? map(_backlight_level, 0, 100, 0, 255) : 0);
|
monitor_backlight(_backlight_power ? map(_backlight_level, 0, 100, 0, 255) : 0);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t PosixDevice::get_free_max_block()
|
size_t PosixDevice::get_free_max_block()
|
||||||
|
@ -49,9 +49,7 @@ class TftSdl2 : BaseTft {
|
|||||||
/* Add a display
|
/* Add a display
|
||||||
* Use the 'monitor' driver which creates window on PC's monitor to simulate a display*/
|
* Use the 'monitor' driver which creates window on PC's monitor to simulate a display*/
|
||||||
monitor_init();
|
monitor_init();
|
||||||
#ifndef TARGET_OS_MAC
|
|
||||||
monitor_title(haspDevice.get_hostname());
|
monitor_title(haspDevice.get_hostname());
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Add the mouse as input device
|
/* Add the mouse as input device
|
||||||
* Use the 'mouse' driver which reads the PC's mouse*/
|
* Use the 'mouse' driver which reads the PC's mouse*/
|
||||||
|
2
src/hal/README.md
Normal file
2
src/hal/README.md
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
These files need to be obsoleted.
|
||||||
|
The functions should be moved to the respective device ot tft objects.
|
@ -218,6 +218,7 @@ int main(int argc, char* argv[])
|
|||||||
// To retrieve host information
|
// To retrieve host information
|
||||||
host_entry = gethostbyname(hostbuffer);
|
host_entry = gethostbyname(hostbuffer);
|
||||||
// checkHostEntry(host_entry);
|
// checkHostEntry(host_entry);
|
||||||
|
haspDevice.set_hostname(hostbuffer);
|
||||||
|
|
||||||
// To convert an Internet network
|
// To convert an Internet network
|
||||||
// address into ASCII string
|
// address into ASCII string
|
||||||
@ -245,6 +246,7 @@ int main(int argc, char* argv[])
|
|||||||
// return 67;
|
// return 67;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for(count = 0; count < argc; count++) {
|
for(count = 0; count < argc; count++) {
|
||||||
if(argv[count][0] == '-') {
|
if(argv[count][0] == '-') {
|
||||||
|
|
||||||
|
@ -56,10 +56,11 @@ build_flags =
|
|||||||
|
|
||||||
lib_deps =
|
lib_deps =
|
||||||
${env.lib_deps}
|
${env.lib_deps}
|
||||||
lv_drivers@~7.9.1
|
; lv_drivers@~7.9.1
|
||||||
;lv_drivers=https://github.com/littlevgl/lv_drivers/archive/7d71907c1d6b02797d066f50984b866e080ebeed.zip
|
;lv_drivers=https://github.com/littlevgl/lv_drivers/archive/7d71907c1d6b02797d066f50984b866e080ebeed.zip
|
||||||
https://github.com/eclipse/paho.mqtt.c.git
|
https://github.com/eclipse/paho.mqtt.c.git
|
||||||
bblanchon/ArduinoJson@^6.17.2 ; Json(l) parser
|
bblanchon/ArduinoJson@^6.17.2 ; Json(l) parser
|
||||||
|
https://github.com/fvanroie/lv_drivers
|
||||||
|
|
||||||
lib_ignore =
|
lib_ignore =
|
||||||
paho
|
paho
|
||||||
|
Loading…
x
Reference in New Issue
Block a user