@simonedegiacomi You're welcome to send a pull request if you want your changes upstream :-)
Thank you for the fast reply!
I'm still working on the changes I'm making, but I will happily send a pull request when my code is ready :-)
re: the I2C issue, maybe it's a kernel driver issue? Maybe try to recompile the driver with some debug output? Is stock firmware a requirement for your project? why?
I need to be able to use the library with the stock firmware, because it's going to be used by OpenRoberta, a platform to allow children to program different robots through a graphic language. The goal is exactly to support the EV3 with the stock firmware (it is already supported using ev3-dev and lejos). Anyway, recompiling the firmware while developing, to debug more easily it's definitely a good idea!
@simonedegiacomi Maybe it is unimplemented? I ran into something once which was documented in the programmer manual, but not actually implemented in firmware.
I think that the bluetooth it's implemented, because it seems to me that the ev3 VM uses that file to implement the bluetooth. It's also true that the code in the firmware uses dbus and the bluez c API toghether, in the same file, so maybe they implemented it using different ways (??).
I'll try to spend some more time reading the code and, if you are interested, I'll report here my results.
printf("%s: %d HERE!!!11!\n", __func__, __LINE__);debugging)
@a3f alright thanks, I'll try that!
I opened an issue for the make error, hopefully the error message is useful enough (sorry, it's my first time trying out stuff like this so i'm not sure what exactly is needed)
By the way, did the sound API work for anyone out of the box? It threw a casting error for me, which I managed to fix by adding the missing cast in the API
Source prj_sound/sound.cpp, Project Folder prj_sound prj_sound/sound.cpp: In function 'void PlayToneEx(short unsigned int, short unsigned int, unsigned char)': prj_sound/sound.cpp:49: error: invalid conversion from 'unsigned char*' to 'char*' prj_sound/sound.cpp:49: error: initializing argument 1 of 'int WriteToSoundDevice(char*, int)'
ptxdist go -j -qthat downloads all needed packages, patches them if needed and builds/install them. Downside is that it's not readly compilable on macOS, because of the outdated GNU tools there.