% libcamera-hello libEGL warning: DRI2: failed to authenticate Made X/EGL preview window [0:01:57.813732765] [1621] INFO Camera camera_manager.cpp:297 libcamera v0.0.5+83-bde9b04f ERROR: no cameras availablePlus
dmesg |grep -i imx dmesg |grep -i cameraDoesn't return anything.
rust fn main() { let mut pin = Gpio::new().unwrap().get(18).unwrap().into_io(Mode::Output); let mut led = Gpio::new().unwrap().get(17).unwrap().into_output(); let mut sensor = Dht11::new(pin); for _ in 0..10 { led.set_high(); let measurement = sensor.perform_measurement(&mut Delay::new()); println!("{:?}", measurement); led.set_low(); sleep(Duration::from_secs(1)); } }but measurement keeps being set to Err(Timeout). I have tried using different IO modes and using different libraries too. This crate is dht11, but I have also tried dht-sensor and simple-dht11, to no avail. I also haven't managed to get a measurement with a different language, Python kept crashing in the venv because it couldn't detect the environment. I connected the VCC to the 3.3V supply, the ground to GND and the data line to GPIO 18. I'm pretty confident it's correctly connected cause I have an LED on my DHT11 that lights up, but I cannot make any measurements whatsoever.
root@raspberrypi:/boot# cat config.txt | grep mem gpu_mem=256 gpu_mem_256=64 gpu_mem_512=128 gpu_mem_1024=256 and after rebooting multiple times I never get the memory to change : root@raspberrypi:/boot# vcgencmd get_mem arm && vcgencmd get_mem gpu arm=1020M gpu=4M
import time import board import digitalio import usb_hid import sys from adafruit_hid.keyboard import Keyboard from adafruit_hid.keycode import Keycode btn1_pin = (board.GP16) btn2_pin = (board.GP15) # Set up the button btn1 = digitalio.DigitalInOut(btn1_pin) btn1.direction = digitalio.Direction.INPUT btn1.pull = digitalio.Pull.DOWN btn2 = digitalio.DigitalInOut(btn2_pin) btn2.direction = digitalio.Direction.INPUT btn2.pull = digitalio.Pull.DOWN keyboard = Keyboard(usb_hid.devices) while True: if btn1.value: keyboard.send(Keycode.A) time.sleep(01) keyboard.send(Keycode.A) time.sleep(01) keyboard.send(Keycode.A) time.sleep(01) keyboard.send(Keycode.A) time.sleep(01) keyboard.send(Keycode.A) time.sleep(01) keyboard.send(Keycode.A) time.sleep(01) keyboard.send(Keycode.A) time.sleep(01) keyboard.send(Keycode.A) time.sleep(01) if btn2.value: keyboard.releaseall()(Eventually the A keycodes will be swapped for scroll down arrow commands to I can scroll up and down a page) What I'm finding impossible to do is to stop the code mid way though with the press of btn2. is there a way to do this? thanks.