3

The problem is, that you misunderstood, how the Wire library handles addresses. I2C uses an address byte, where the first 7 bits are the actual address and the last bit (Read/Write bit) dictates the direction of the communication. The Wire library gives you different functions for both directions (in your case: Wire.beginTransmission() for master write and ...


3

Exactly as @MichelKeijzers wrote the issue is caused by "IRremote" using same timer as "Tone" and the solution to this problem is a little dirty. Since Tone is included in ArduinoCore (and compiled) we can't easilly modify it so the only thing that worked for me is to modify boarddefs.h file of IRremote library. Since it's code is easilly available after ...


3

Another way is for the caller to provide the memory as a pointer to enough bytes for 'N' objects (cast, if necessary, as a pointer to the required type), and the number, 'N' of such objects. This gives the caller the choice of whether to allocate statically or dynamically. It looks like you want an array of ints. So you'd allocate an array (statically, in ...


3

ESP8266 based boards do not like being tied up for too long without being able to service any WiFi based tasks. Having a while(1){} effectively ties up the processor indefinitely. This causes a watchdog reset, and the serial port will print garbage (actually it's the chip's boot message). You don't show your Serial setup. The ESP8266 can service its WiFi ...


2

The MAC / Arduino install instructions appear to be here. If your Arduino (possibly a NodeMCU 1.0 version board) is using the CP210x chip set there appears to be a download page here. If your Arduino (possibly a NodeMCU 0.9 version board) is using the ch340g, ch34g or ch34x chip set there appears to be an effort to create a Mac OS X driver here. The ...


2

The TinyGSM library implements Arduino networking Client base class over GSM modem's AT commands. The library is available in Library Manager.


2

On ATmega328p and similar ATmega MCUs with bootloader support, the application is not allowed to write to flash. Only code running in bootloader area of the flash memory is allowed to write to flash. Bootloader area is at the end of the flash and the beginning is set with the BOOTSZ fuses. The write to flash page is done in two steps. First step is deleting ...


2

You can run multiple instances of the Arduino IDE to work with multiple boards at the same time. Start IDE second time with Start menu or desktop shortcut. Of course you can monitor the COM/tty port with a common serial terminal program too.


2

If you are only interested in monitoring the output, a simply python script can be run to monitor the port. This sample takes an input of the port number(assuming they get named ttyUSB1, ttyUSB2, ect... Or you can modify it to be a hard coded port. Also make sure the baud rate matches with what your arduino is running (115200 in the example) You can then ...


2

As Mikael Patel mentions in the comments: your structures do not match between the transmitter and receiver. Transmitter Receiver ===================== ===================== struct Data_Package { struct Data_Package { byte j1PotX; -> byte j1PotX; byte j1PotY; -> byte j1PotY; byte j2PotX; -> ...


2

For ESP32 boards the differences are very minor. In general an ESP32 is an ESP32. The only changes are name to pin mappings, and how to upload code. There are a couple of different ESP32 modules, but in general all the boards use the same (cheapest) module. If you look at the pins_arduino.h file for a variant you see that it is pretty much all in the ...


1

The setVoltage method has the following prototype: void setVoltage( uint16_t output, bool writeEEPROM ); This means it does not return a value. If you expect to return 1095, why not write: volza = 1095; setVoltage(volza, 1); Serial.println(volza); Some background information: Assume you want to have the library a getVoltage method, than this is ...


1

Sloeber, an open source IDE based on Eclipse on which I am a proud contributor, does have this feature, but the Arduino IDE does not.


1

Short answer : No. Long answer : Noooooooooooooooooooooooooooooooooooooo, since one window can only work with one arduino. That being said, if you open another file, or create new file (Ctrl + N) on existing window, it doesn't make another process. It is still on the only javaw.exe process running on your computer (you kill that, both window gone for ...


1

Yes. Select a partition scheme that gives you more room. For example "No OTA (Large APP)" gives you 3MB of program space.


1

As suggested in st2000’s answer, you could use dynamic allocation but, if you do that, do not forget to free the allocated memory in the destructor. Otherwise you have a nasty memory leak and your program will not live long: class MyClass { public: MyClass(size_t length) : arrayLength(length) { theArrayOfNumbers = new int[arrayLength]; } ...


1

Firstly you should be including TimeLib.h not Time.h - the library header name has been changed to avoid conflicts on case-insensitive systems (Windows) and the internal time.h header in many compilers. Secondly you should always include all your libraries in your INO file directly. This is because the IDE parses the INO file before compiling looking for ...


1

Without seeing YOUR code, this is a guess. I suspect you have a typo / syntax error. Likely candidates include having a character in an identifier in the wrong case (lower case when it should be upper, etc) or missing a character.


Only top voted, non community-wiki answers of a minimum length are eligible