The LCD with touchscreen seem not right, the mouse pointer did not stay same where I use the pen. please review the video here: www.youtube.com/watch?v=OzimRn-medk
I found out and here code: # Double Click detect without the same of the coordinates. from tkinter import * counting = 0 press_is_pressed = 0 got_pressed = 0 double_pressed = 0 window = Tk() window.attributes('-fullscreen', False) window.configure(bg='black') window.geometry("200x200") win...
yes correct and I do not want to open the GUI on my windows from the SSH, I want to run the GUI with my program on RPI4B itself when I executed my program from the SSH. Like I said: - I type: PYTHON3 MYPROGRAM1.PY from the SSH on my windows 10 (PuTTY). - The RPI4B to start the program and running on...
I have a python program and executed (python3 myprogram1.py) from the terminal in the RPI4B works perfectly. I wanted to run on RPI4B without the keyboard and mouse and not want use an VNC. But when I use a terminal from windows 10 on my pc with SSH remote and tried to run my program, it said: pi@ra...
I know one of code is works great as: try: import httplib except: import http.client as httplib def checkInternetHttplib(url="www.google.com", timeout=3): conn = httplib.HTTPConnection(url, timeout=timeout) try: conn.request("HEAD", "/") conn.close() return True except ...
Alright, I have an idea to explain this: I have two the RASPBERRY PI 4B as 'A' and 'B' on each RPI board. The 'A' board has a button connected to the GPIO. The 'B' board has a LED connected to the GPIO. Both boards are connected with the network with IP address. I would like to press the button from...
I'd use the remote GPIO feature of joan's pigpio library http://abyz.me.uk/rpi/pigpio/ It's going to be a lot simpler than writing your own network code and protocols. For python, gpiozero supports it: https://gpiozero.readthedocs.io/en/stable/recipes_remote_gpio.html Sir, I know the GPIO code work...
Here code for example what I wish... # THIS IS FOR EXAMPLE ONLY this code is not working, just example again: import network import GPIO GPIO.OUTPUT(1,2,3,4) GPIO.INPUT(5,6,7,8,pull_up) data1 = 0 data2 = 0 data3 = 0 data4 = 0 data5 = 0 data6 = 0 data7 = 0 data8 = 0 def receiver(): data1=net.get() da...
there is ~200kb free on the internal SPI last i checked this comment and this code explains how the filesystem works, and can dump every file in it and this code in the official scripts is responsible for flashing from within linux but the MOSI/MISO lines are shared with the PWM lines for analog au...
I have a RPI 4B run perfectly with M.2 to USB boot up all good. Also, I know they do sell SPI flash memory module use GPIO to read and write. BUT... wondering.... the SPI flash memory ON the RPI 4B for bootstrap and config for booting... I believe there have left free space by the address, can we us...
What's the problem? Can't you bind mouse button events to the main window to catch them anywhere? I don't know tkinter well. Then just increment your counters in timer callbacks so they count as long as you hold the mouse button down.. Ummm... let me see if I can... I am not sure how... but let see...
How about you bind the pressed and released events and in the pressed callback you start a timer. In the released callback cancel the timer If the timer ends and raises a callback the button has been pressed for at least the duration of the timer and you can take some action. I you want auto-repeat...
I am looking for the codes for the mouse click-and-hold counting in the loop. I do not want the code when mouse is pressed and it wait for release. hard find in the internet! Also press on anything on the screen such NOT button etc… I do not care if it is bad idea, I just need code. THANK YOU SO MUC...
The touchscreen is working perfectly. The mouse is working perfectly but will go disconnect it when the project is completed. Using RPI 4B 4GB. Using Tkinter a lot. I am using dual monitor, HDMI-0 is LCD 5" with touchscreen, HDMI-1 is 27" monitor and will disconnect HDMI-1 when completed. ...