Go to advanced search

by ATARI_LIVE
Wed Jan 27, 2021 10:13 am
Forum: General
Topic: Create AUTORUN in the PICO...
Replies: 1
Views: 25

Create AUTORUN in the PICO...

I searched the posts and did not clear to understand. :(

I am new on the PICO... When I created a blinking LED and saved a file "blinking" in the PICO's memory and run from the Thonny and works good. :mrgreen:

How can I create an AUTORUN when I plug in the power on the PICO?


THANKS!
by ATARI_LIVE
Fri Nov 13, 2020 1:01 pm
Forum: Troubleshooting
Topic: ELECROW 5" LCD touchscreen issue with pointer.
Replies: 1
Views: 63

ELECROW 5" LCD touchscreen issue with pointer.

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

need help.
by ATARI_LIVE
Fri Nov 13, 2020 11:11 am
Forum: General discussion
Topic: Double click on touch screen issue
Replies: 1
Views: 86

Re: Double click on touch screen issue

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...
by ATARI_LIVE
Thu Nov 12, 2020 10:37 am
Forum: General discussion
Topic: Double click on touch screen issue
Replies: 1
Views: 86

Double click on touch screen issue

When I use bind(<Double-Button-1>, run_function) on the TOUCHSCREEN.

the mouse does works but not touchscreen due fat-fingers.

The double click MUST be same mouse's coordinates.

is there other way to double click without target coordinates?
by ATARI_LIVE
Wed Nov 11, 2020 11:18 am
Forum: General discussion
Topic: Start my program in RPI4B from SSH and Failed
Replies: 4
Views: 233

Re: Start my program in RPI4B from SSH and Failed

YES!

That's one!!! THANK YOU!!
by ATARI_LIVE
Wed Nov 11, 2020 11:00 am
Forum: General discussion
Topic: Start my program in RPI4B from SSH and Failed
Replies: 4
Views: 233

Re: Start my program in RPI4B from SSH and Failed

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...
by ATARI_LIVE
Wed Nov 11, 2020 10:05 am
Forum: General discussion
Topic: Start my program in RPI4B from SSH and Failed
Replies: 4
Views: 233

Start my program in RPI4B from SSH and Failed

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...
by ATARI_LIVE
Wed Oct 28, 2020 2:36 pm
Forum: General discussion
Topic: PYTHON: Check local network WITHOUT internet
Replies: 2
Views: 133

PYTHON: Check local network WITHOUT internet

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 ...
by ATARI_LIVE
Tue Oct 20, 2020 8:55 am
Forum: General discussion
Topic: Data I/O between two RPI 4B...
Replies: 12
Views: 468

Re: Data I/O between two RPI 4B...

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...
by ATARI_LIVE
Fri Oct 16, 2020 2:58 pm
Forum: General discussion
Topic: Data I/O between two RPI 4B...
Replies: 12
Views: 468

Re: Data I/O between two RPI 4B...

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...
by ATARI_LIVE
Fri Oct 16, 2020 1:22 pm
Forum: General discussion
Topic: Data I/O between two RPI 4B...
Replies: 12
Views: 468

Re: Data I/O between two RPI 4B...

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...
by ATARI_LIVE
Fri Oct 16, 2020 11:34 am
Forum: General discussion
Topic: Data I/O between two RPI 4B...
Replies: 12
Views: 468

Re: Data I/O between two RPI 4B...

topguy wrote:
Fri Oct 16, 2020 8:57 am
What programming language should that code be in ?
Python, Linux.
by ATARI_LIVE
Fri Oct 16, 2020 8:39 am
Forum: General discussion
Topic: Data I/O between two RPI 4B...
Replies: 12
Views: 468

Data I/O between two RPI 4B...

Folks, I am looking for the coding to set a communicate on two of the Raspberry Pi 4B 4 bit in and 4 bit out. see the picture for an example:
https://www.dropbox.com/s/u17zihd0pqu58vp/I_O.png?dl=0

Just small example code so I can figure it out.

Thanks for your helps!
by ATARI_LIVE
Tue Oct 13, 2020 2:53 pm
Forum: General discussion
Topic: SPI Flash on the RPI 4B...
Replies: 3
Views: 258

Re: SPI Flash on the RPI 4B...

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...
by ATARI_LIVE
Tue Oct 13, 2020 1:55 pm
Forum: General discussion
Topic: SPI Flash on the RPI 4B...
Replies: 3
Views: 258

SPI Flash on the RPI 4B...

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...
by ATARI_LIVE
Thu Oct 08, 2020 12:52 pm
Forum: Python
Topic: Mouse click-and-hold...
Replies: 9
Views: 368

Re: Mouse click-and-hold...

from tkinter import * root = Tk() def press_cb(event=None): global lp_id if event is None: print("THERE!!!, I GOT YOUR PRESSED AND HOLD") lp_id = None elif event.type == EventType.ButtonPress: lp_id = root.after(2000, press_cb) elif lp_id: root.after_cancel(lp_id) lp_id = None root.bind('...
by ATARI_LIVE
Thu Oct 08, 2020 12:34 pm
Forum: Python
Topic: Mouse click-and-hold...
Replies: 9
Views: 368

Re: Mouse click-and-hold...

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...
by ATARI_LIVE
Thu Oct 08, 2020 9:58 am
Forum: Python
Topic: Mouse click-and-hold...
Replies: 9
Views: 368

Re: Mouse click-and-hold...

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...
by ATARI_LIVE
Thu Oct 08, 2020 8:14 am
Forum: Python
Topic: Mouse click-and-hold...
Replies: 9
Views: 368

Re: Mouse click-and-hold...

try this... count = 0 while mouse_pressed == 1 and count < 201: count = count +1 if count > 10 and count < 20: print("Still holding…") if count > 100 and count < 110: print("Whoa, that’s enough!") if count > 200: print("FINE!, I am quitting!") count = 0 Lol and thanks,...
by ATARI_LIVE
Wed Oct 07, 2020 10:00 am
Forum: Python
Topic: Mouse click-and-hold...
Replies: 9
Views: 368

Mouse click-and-hold...

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...
by ATARI_LIVE
Thu Oct 01, 2020 8:50 am
Forum: General discussion
Topic: ON-SCREEN KEYPAD module
Replies: 2
Views: 178

Re: ON-SCREEN KEYPAD module

Raspberry Pi 4B with Raspbian
by ATARI_LIVE
Wed Sep 30, 2020 9:19 am
Forum: General discussion
Topic: ON-SCREEN KEYPAD module
Replies: 2
Views: 178

ON-SCREEN KEYPAD module

Does anyone have module code for the on-screen keypad than the on-screen keyboard?

Thanks!
RAM
by ATARI_LIVE
Tue Sep 29, 2020 1:21 pm
Forum: Python
Topic: Need Code for touchscreen...
Replies: 4
Views: 181

Re: Need Code for touchscreen...

YES! that's the one! THANK YOU!!! :D
by ATARI_LIVE
Tue Sep 29, 2020 12:16 pm
Forum: Python
Topic: Need Code for touchscreen...
Replies: 4
Views: 181

Re: Need Code for touchscreen...

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. ...

Go to advanced search