Lorenzo Delana

Results 23 comments of Lorenzo Delana

This worked for me on stm32f446re arduino platformio, ```cpp static SPIClass mySPI2(PB15, PB14, PB13); // set for SPI2 SdFs sd; sd.begin(SdSpiConfig(PB12, DEDICATED_SPI, SD_SCK_MHZ(18), &mySPI2)); ```

`/usr/bin/ld: cannot find -li2c` for me solve with `apt install libi2c-dev` on raspian buster ( same for #24 )

```sh apt install libi2c-dev ``` this fixed that error for me on raspian buster, can you confirm that solve for you too ?

hmm, that's bit strange, if I remove the lib the make fail as expected ``` root@raspberrypi:/usr/src/ArduiPi_OLED# apt remove libi2c-dev Reading package lists... Done Building dependency tree Reading state information... Done...

you could try to search for libi2c.a using apt-file utility as follows ```sh apt-get install apt-file ``` after installed refresh the search archive with `apt-file update` then search where libi2c.a...

In fact I just seen from https://packages.debian.org/index that your distro missing libi2c.a at all ![image](https://user-images.githubusercontent.com/13405008/115117379-85995600-9f9e-11eb-9849-13acd4f0c58e.png) Could you try to run the latest line from your source dir ( I removed...

from your source of ArduiPi_OLED if you run make the result should ``` g++ -shared -Wl,-soname,libArduiPi_OLED.so.1 -Ofast -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -o libArduiPi_OLED.so.1.0 ArduiPi_OLED.o Adafruit_GFX.o bcm2835.o Wrapper.o -li2c /usr/bin/ld: cannot...

as expected, but insert the command by hand ( better with mouse select then middle btn to paste ) ```sh g++ -shared -Wl,-soname,libArduiPi_OLED.so.1 -Ofast -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -o libArduiPi_OLED.so.1.0...

:) but it worked ? Unfortunately I running another distro and I cannot test the behavior, but if you confirm that compile work I would schedule to modify Makefile so...

I'm unsure, but seems it was from kernel, while in recent os exported to user space and requires -li2c ; if you go to `examples` folder are you able to...