fix(boards): 修复arduino espxx下DS1307和DS3231异常

This commit is contained in:
王立帮
2025-04-30 00:03:20 +08:00
parent 52f1c9a599
commit ac448b18c2
8 changed files with 144 additions and 7 deletions

View File

@@ -1,3 +1,6 @@
import { ArduinoESP8266SensorGenerators } from '@mixly/arduino-esp8266';
export const chaoshengbo = function (_, generator) {
var dropdown_pin1 = this.getFieldValue('PIN1');
var dropdown_pin2 = this.getFieldValue('PIN2');
@@ -73,4 +76,6 @@ export const ESP_TCS34725_Get_RGB = function (_, generator) {
generator.setups_['setup_Adafruit_TCS34725'] = 'tcs34725.begin(0x29);';
const RGB = this.getFieldValue('TCS34725_COLOR');
return ['getRGB(\'' + RGB + '\')', generator.ORDER_ATOMIC];
}
}
export const DS1307_init = ArduinoESP8266SensorGenerators.DS1307_init;