mirror of
https://github.com/grblHAL/core.git
synced 2026-02-05 08:34:01 +08:00
Added function for clearing LED strips.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
## grblHAL ##
|
## grblHAL ##
|
||||||
|
|
||||||
Latest build date is 20250808, see the [changelog](changelog.md) for details.
|
Latest build date is 20250825, see the [changelog](changelog.md) for details.
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> A settings reset will be performed on an update of builds prior to 20241208. Backup and restore of settings is recommended.
|
> A settings reset will be performed on an update of builds prior to 20241208. Backup and restore of settings is recommended.
|
||||||
|
|||||||
23
changelog.md
23
changelog.md
@@ -1,5 +1,28 @@
|
|||||||
## grblHAL changelog
|
## grblHAL changelog
|
||||||
|
|
||||||
|
<a name="20250825">Build 20250825
|
||||||
|
|
||||||
|
Core:
|
||||||
|
|
||||||
|
* Added function for clearing LED strips.
|
||||||
|
|
||||||
|
Drivers:
|
||||||
|
|
||||||
|
* ESP32: fix for incorrect handling of claimed analog output ports. Ref. issue [#175](https://github.com/grblHAL/ESP32/issues/175).
|
||||||
|
|
||||||
|
* LPC176x: fix for NXP framework "bug" causing compiler error insted of warning, possibly due to stricter compiler in newer versions of the IDE.
|
||||||
|
Ref. discussion [#57](https://github.com/grblHAL/LPC176x/discussions/57).
|
||||||
|
|
||||||
|
* STM32F4xx: updated to allow mixing of LED strip drivers.
|
||||||
|
|
||||||
|
Plugins:
|
||||||
|
|
||||||
|
* Keypad, macros: fixed typo.
|
||||||
|
|
||||||
|
* Plasma: added arc ok, probe and up/down input states to real time report when idle.
|
||||||
|
|
||||||
|
--
|
||||||
|
|
||||||
<a name="20250806">Build 20250806
|
<a name="20250806">Build 20250806
|
||||||
|
|
||||||
Core:
|
Core:
|
||||||
|
|||||||
2
grbl.h
2
grbl.h
@@ -42,7 +42,7 @@
|
|||||||
#else
|
#else
|
||||||
#define GRBL_VERSION "1.1f"
|
#define GRBL_VERSION "1.1f"
|
||||||
#endif
|
#endif
|
||||||
#define GRBL_BUILD 20250808
|
#define GRBL_BUILD 2020825
|
||||||
|
|
||||||
#define GRBL_URL "https://github.com/grblHAL"
|
#define GRBL_URL "https://github.com/grblHAL"
|
||||||
|
|
||||||
|
|||||||
19
rgb.h
19
rgb.h
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Part of grblHAL
|
Part of grblHAL
|
||||||
|
|
||||||
Copyright (c) 2024 Terje Io
|
Copyright (c) 2024-2025 Terje Io
|
||||||
|
|
||||||
grblHAL is free software: you can redistribute it and/or modify
|
grblHAL is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@@ -100,6 +100,23 @@ static inline bool rgb_is_onoff (rgb_ptr_t *device)
|
|||||||
return device->out != NULL && device->cap.R == 1 && device->cap.G == 1 && device->cap.B == 1;
|
return device->out != NULL && device->cap.R == 1 && device->cap.G == 1 && device->cap.B == 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline void rgb_clear (rgb_ptr_t *device)
|
||||||
|
{
|
||||||
|
if(device->set_intensity)
|
||||||
|
device->set_intensity(255);
|
||||||
|
|
||||||
|
if(rgb_is_neopixels(device) && device->num_devices) {
|
||||||
|
|
||||||
|
uint32_t idx;
|
||||||
|
|
||||||
|
for(idx = 0; idx <= device->num_devices; idx++)
|
||||||
|
device->out(idx, (rgb_color_t){0});
|
||||||
|
|
||||||
|
if(device->num_devices > 1 && device->write)
|
||||||
|
device->write();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Intensity conversions
|
// Intensity conversions
|
||||||
|
|
||||||
static inline rgb_color_t rgb_set_intensity (rgb_color_t color, uint8_t intensity)
|
static inline rgb_color_t rgb_set_intensity (rgb_color_t color, uint8_t intensity)
|
||||||
|
|||||||
Reference in New Issue
Block a user