@frexeta I don't think so. It's 5 months ago and skipped the 'project'
Posts made by Marelli7
-
RE: Extend I/O (EXT_IO) how to read inputs? (arduino)
-
RE: [Solved] Mac OS UIFlow Desktop-IDE connects, but browser cannot connect to Core2 - Why?
@ajb2k3
I learned that the browser does connect to the Core2 by WiFi and the IDE connects using USB. -
RE: [SOLVED] Core2 - how to fix the error: call of overloaded 'begin(int ....)' is ambiguous
Thanks again @felmue
I appreciate these spot-on answers other then guessing what might be the cause (sorry).I wasn't aware of that and I noticed that my Mac was on another SSID. No I understand why 'it' asks to use the same SSID as my mac....
FYI: I got my Unit_DDS running on the Core2, controlled by a rotary-encoder (HW-040) connected to the M5Stamp I/O. Both, DDS and I/O, on I2C. Completely useless, other than testing my oscilloscope and hearing loss and blowing a candle with 10Hz, but fun to build.
groeten,
Paul -
RE: [SOLVED] Core2 - how to fix the error: call of overloaded 'begin(int ....)' is ambiguous
Hello @felmue ...A Catch22
Finally managed to get the M5Burner to do its job (needed a Burner beta version for the Mac .....why...)
the IDE doesn't has the encoder unit listed in the Unit list when using the (+), but the IDE does connect to my Core2. And I don't know how to add unlisted Units to the IDE
The web version has the Unit_Enoder but is unable to connect to the Core2 (using Chrome). Somehow I'm unable to select the port to be used. User ajb2k3 suggested to use the orange Terminal button. The terminal connects OK, but the UIFlow doesn't.
-
RE: [Solved] Mac OS UIFlow Desktop-IDE connects, but browser cannot connect to Core2 - Why?
Found it* ...
But, then whát to do to connect?
The Terminal reports connected, the UIFlow screen show [disconnected
]
*This Orange Terminal (Beta) button is also displayed when using another browser. -
[Solved] Mac OS UIFlow Desktop-IDE connects, but browser cannot connect to Core2 - Why?
UIFlow-Desktop-IDE connects fine to my Core2 when selecting the correct USB port (driver is OK)
The IDE is missing a lot of units and I don't know yet how to add unlisted Units.The browser version shows [
disconnected
] at the left bottom, for both Chrome and Firefox.
API key is OK. The IDE is not running when using the browser.
Where - and how- can I select the USB port to be used to communicate with the Core2? -
RE: M5Core2 version 2.0.5 Arduino update won't install on a Mac OSX?
@fosouza Thanks!
It took some quick-clicking, but I got the 2.0.5 installed. -
RE: M5Core2 version 2.0.5 Arduino update won't install on a Mac OSX?
It is an update, so why should I worry about XCode, Python and/or USB driver?
Sorry, forgot to mention that is for the Arduino IDE 2.0.0.
I'm not using Xcode and/or Python -
RE: [SOLVED] Core2 - how to fix the error: call of overloaded 'begin(int ....)' is ambiguous
Thanks a lot!! Message "extio Connected" made my day. I already changed the I2C adresses, but the
(int)
did the trick.
I was close to the point to give the Core2 some flying lessons.Next will be getting familiar with UIFlow
let's close this topic
-
M5Core2 version 2.0.5 Arduino update won't install on a Mac OSX?
Somehow the update creates two directories in /tmp causing this error 13 message:
(OS Monterey)Error: 13 INTERNAL: Cannot install platform:installing platform m5stack:esp32@2.0.5: searching package root dir: no unique root dir in archive, found '/Users/MacMarelli/Library/Arduino15/tmp/package-4036131626/2.0.5' and '/Users/MacMarelli/Library/Arduino15/tmp/package-4036131626/__MACOSX'
Can I manually control this update process?
Can I install this update manually by replacing the existing 2.0.5 or will this result in unexpected errors -
RE: [SOLVED] Core2 - how to fix the error: call of overloaded 'begin(int ....)' is ambiguous
Hi @felmue,
I'm not familiar with UIFlow (yet). Currently using Arduino IDE to program and maintain a dozen ESP32 Devkits.
Can I use both UIFlow and Arduino IDE alternately?I cannot understand why my Unit_DDS runs fine on a Core2 and where it goes wrong using the encoder and Stamp I/O -using Arduino IDE. All 3 are using the STM32-chip.
The lack of easy accessible I/O makes the Core2 less usable for me. That's why I first bought the Extend I/O (PCA9554PW) > Not working. Then the I2C Encoder (not working) and Stamp I/O (not working). Quite frustrating.
First I'll try the Encoder on an ESP32 or even an Uno to set the frequency of the DDS.
-
RE: [SOLVED] Core2 - how to fix the error: call of overloaded 'begin(int ....)' is ambiguous
It's getting worse: same issue using the M5Stamp_I/O:
connected an HW-040 (rotary encoder module) to the M5Stamp I/O.
WireScan.ino found address 0x45.while (!extio.begin(&Wire, 32, 33, 0x45)) { //I2C was 21,22 for Core 2 32,33 //Serial.println("extio Connect Error"); M5.Lcd.drawString("extio Connect Error", 0, 0, 4); while (1) {} }
Core2 display shows: extio Connect Error
BTW: The Unit_DDS function generator with an STM32 works fine connected to the Core2.
-
RE: [SOLVED] Core2 - how to fix the error: call of overloaded 'begin(int ....)' is ambiguous
I added these lines to the .cpp file, but there is no related output on the Serial Monitor.
_sda = sda; _scl = scl; _speed = speed; Serial.printf("SDA: %d SCL: %d\n", SDA, SCL); Serial.printf("_sda: %d _scl: %d\n", _sda, _scl); _wire->begin((int)_sda, (int)_scl, _speed);
Any other tips to get these GPIO's displayed?
No worries. I'll do the testing for you.
-
RE: [SOLVED] Core2 - how to fix the error: call of overloaded 'begin(int ....)' is ambiguous
Hello Felix,
Thanks for the quick reply, that part is solved! Compiled and runs on the Core2 !! (even without the
#include "pins_arduino.h"
)
but... something else is wrong too I guess.
The encoder doesn't return any values (value = -1) and the LED's do not respond to setLEDColor(). I2C-scan shows correct address 0x40 meaning the STM32F0 is found on the I2C-bus.
Done testing with a slightly modified example (stauts replaced by status ... I'm a dislect too ;-)void loop() { signed short int encoder_value = sensor.getEncoderValue(); bool btn_status = sensor.getButtonStatus(); Serial.println(encoder_value); if (last_value != encoder_value) { if (last_value > encoder_value) { sensor.setLEDColor(1, 0x000011); } else { sensor.setLEDColor(2, 0x111100); } last_value = encoder_value; } else { sensor.setLEDColor(0, 0x001100); } if (!btn_status) { sensor.setLEDColor(0, 0xC800FF); } M5.Lcd.fillRect(00, 00, 160, 70, DARKGREY); //overwrite text M5.Lcd.setTextColor(YELLOW); M5.Lcd.setTextSize(1); M5.Lcd.drawString("button " + String(btn_status), 10, 10, 4); M5.Lcd.drawString("encoder " + String(encoder_value), 10, 40, 4); delay(20); }
Regards,
Paul -
[SOLVED] Core2 - how to fix the error: call of overloaded 'begin(int ....)' is ambiguous
When using the GitHub M5Unit_Encoder (with recently updated .cpp) I'm getting this call of overloaded error.
.../Arduino/libraries/M5Unit-Encoder/src/Unit_Encoder.cpp: In member function 'void Unit_Encoder::begin(TwoWire*, uint8_t, uint8_t, uint8_t, uint32_t)': .../OneDrive-Persoonlijk/Arduino/libraries/M5Unit-Encoder/src/Unit_Encoder.cpp:11:46: error: call of overloaded 'begin(int, int, uint8_t&)' is ambiguous _wire->begin((int)_sda, (int)_scl, _speed); ^ In file included from .../Arduino/libraries/M5Unit-Encoder/src/Unit_Encoder.h:13, from .../Arduino/libraries/M5Unit-Encoder/src/Unit_Encoder.cpp:1: .../Library/Arduino15/packages/m5stack/hardware/esp32/2.0.4/libraries/Wire/src/Wire.h:79:10: note: candidate: 'bool TwoWire::begin(int, int, uint32_t)' bool begin(int sda=-1, int scl=-1, uint32_t frequency=0); // returns true, if successful init of i2c bus ^~~~~ .../Library/Arduino15/packages/m5stack/hardware/esp32/2.0.4/libraries/Wire/src/Wire.h:80:10: note: candidate: 'bool TwoWire::begin(uint8_t, int, int, uint32_t)' bool begin(uint8_t slaveAddr, int sda=-1, int scl=-1, uint32_t frequency=0); ^~~~~ exit status 1 Compilation error: exit status 1
The author just edited the .ccp file because of this error. Somehow didn't work for me...
It's obvious that something is wrong with the number of arguments, but I do not have the knowledge to figure out what to do to solve this.below the .ino (stripped to the basics)
#include "Unit_Encoder.h" Unit_Encoder encoder; void setup() { M5.begin(); // Init M5Stack encoder.begin(); //sensor.begin(&Wire) doesn't work } void loop() { //signed short int encoder_value = encoder.getEncoderValue(); bool btn_status = encoder.getButtonStatus(); if (!btn_status) { M5.Lcd.fillRect(20, 160, 30, 30, DARKGREY); M5.Lcd.setTextColor(YELLOW); M5.Lcd.setTextSize(1); M5.Lcd.drawString("button", 30, 180, 4); } }
-
RE: TouchZone compilation error 'does not namw a type' ??
@felmue, thanks, also for the ```-tip!!
After years of programming the ESP32 it takes a lot of time to get familair with the Core2 specifics
-
TouchZone compilation error 'does not namw a type' ??
Why does the example code below giving me this "Compilation error: 'TouchZone' does not name a type; did you mean 'TouchPoint'?"
M5Touch.h and .cpp both present in M5Core2/src folder, but doesn't contain the word TouchZone.
I'm trying to create a single digit up/down with up/down swipe gesture (like setting a timer on the Iphone)
-
RE: Extend I/O (EXT_IO) how to read inputs? (arduino)
Terry, thanks !!
I'm using the EXT.IO PCA. The IO2 with the STM seems not (yet) available in the Netherlands.
I decided to focus on some other units rather then spending frustrating hours with this ....And Yes, I also do have the Stamp I/O with the STM chip. So it would be very helpful to point me to some arduino sketches. I'll check the examples codes also.
Do you have, by any chance, a working sketch for the rotary encoder (UNIT Encoder) for the Core2 -also with the STM-chip?
I couldn't get this encoder working on my Core2 and that's why I/m trying to read the encoder using External IO. But would be nice to get both (stamp & encoder) working(I'm a newbe to M5Stack but quite familiar with the ESP32)