Update mixly_arduino/blockly/generators/esp32/display.js
@@ -235,10 +235,7 @@ Blockly.Python.display_rgb_init=function(){
var value_ledcount = Blockly.Python.valueToCode(this, 'LEDCOUNT', Blockly.Python.ORDER_ATOMIC);
Blockly.Python.definitions_['import_machine_*'] = 'from machine import *';
Blockly.Python.definitions_['import_neopixel_*'] = 'from neopixel import *';
- // Blockly.Python.definitions_['include_display'] = '#include "Mixly.h"';
var code = v + ' = NeoPixel(Pin('+dropdown_rgbpin+'), '+value_ledcount+', timing = True)\n';
- // Blockly.Python.setups_['setup_rgb_display_begin_' + dropdown_rgbpin] = 'rgb_display_' + dropdown_rgbpin + '.begin();';
- // Blockly.Python.setups_['setup_rgb_display_setpin' + dropdown_rgbpin] = 'rgb_display_' + dropdown_rgbpin + '.setPin(' + dropdown_rgbpin + ');';
return code;
};
