sensebox / ardublockly-1

Visual programming for the new senseBox MCU. Based on blockly, extends Arduino code generation and implements senseBox facilities.
https://blockly.sensebox.de/
Apache License 2.0
9 stars 9 forks source link

A Blockly created Sketch produces not working Arduiono Code #198

Open yxcv1 opened 2 years ago

yxcv1 commented 2 years ago

Reporting a Bug

I used the Display Print example. Then i downloaded the Arduiono code produced by the website. The code didnt work on my maschine.

Expected Behavior

It should work.

Current Behavior

It didnt work.

Possible Solution

I solved it by changing the constructor from "Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);" to "Adafruit_SSD1306 display(OLED_RESET);". (OLED_RESET is just a int)

Steps to Reproduce (for bugs)

  1. go to the website and use the "Display print" example
  2. download Arduiono code
  3. try to compile it local -> it says couldnt match the constructor

Context

I think you just use an other Version of the Arduino SAMD Boards or the senseBox MCU in your Blockly. In that case it would by helpful to write your Version in the Documentation. Thanks!

Your Environment

Arduino SAMD Boards 1.6.10 senseBox MCU 1.5.0