Bei AusfĂźhren einer Messkarte auf Raspberry Pi 4
In Debug Anwendung
fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1] An unhandled exception has occurred while executing the request. System.IO.IOException: Error 2. Can not open I2C device file '/dev/i2c-1'. at System.Device.I2c.UnixI2cBus.Create(Int32 busId) at System.Device.I2c.I2cDevice.Create(I2cConnectionSettings settings)
|
LĂśsung:
auf dem Raspberry Pi auf die
Eingabe-Console gehen
Raspberry Pi 4 Model B Rev 1.4
Eingabe:
Raspberry Pi Software Configuration Tool (raspi-config)
sudo raspi-config
Dann
P5 I2C Enable/disable automatic loading of I2C kernel module
Would you like the ARM I2C interface to be enabled?
> <YES>
The ARM I2 C interface is enabled
Danach läuft die Software und Hardware auf dem Raspberry Pi
Hier läuft die Karte: