Merge branch '0.4.0-dev' of http://github.com/fvanroie/hasp-lvgl into 0.4.0-dev

This commit is contained in:
fvanroie 2021-03-09 16:58:24 +01:00
commit ffb732ce7f
5 changed files with 6 additions and 5 deletions

View File

@ -73,9 +73,7 @@ bool PosixDevice::get_backlight_power()
void PosixDevice::update_backlight()
{
#ifndef TARGET_OS_MAC
monitor_backlight(_backlight_power ? map(_backlight_level, 0, 100, 0, 255) : 0);
#endif
}
size_t PosixDevice::get_free_max_block()

View File

@ -49,9 +49,7 @@ class TftSdl2 : BaseTft {
/* Add a display
* Use the 'monitor' driver which creates window on PC's monitor to simulate a display*/
monitor_init();
#ifndef TARGET_OS_MAC
monitor_title(haspDevice.get_hostname());
#endif
/* Add the mouse as input device
* Use the 'mouse' driver which reads the PC's mouse*/

2
src/hal/README.md Normal file
View File

@ -0,0 +1,2 @@
These files need to be obsoleted.
The functions should be moved to the respective device ot tft objects.

View File

@ -218,6 +218,7 @@ int main(int argc, char* argv[])
// To retrieve host information
host_entry = gethostbyname(hostbuffer);
// checkHostEntry(host_entry);
haspDevice.set_hostname(hostbuffer);
// To convert an Internet network
// address into ASCII string
@ -245,6 +246,7 @@ int main(int argc, char* argv[])
// return 67;
}
#endif
for(count = 0; count < argc; count++) {
if(argv[count][0] == '-') {

View File

@ -56,10 +56,11 @@ build_flags =
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
https://github.com/eclipse/paho.mqtt.c.git
bblanchon/ArduinoJson@^6.17.2 ; Json(l) parser
https://github.com/fvanroie/lv_drivers
lib_ignore =
paho