Python Forum
POKE & PEEK... - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: POKE & PEEK... (/thread-30637.html)



POKE & PEEK... - ATARI_LIVE - Oct-29-2020

In the basic language use POKE and PEEK. what do in python?


RE: POKE & PEEK... - ATARI_LIVE - Oct-29-2020

because I have my own homemade I/O card. I need to write the data by the address 0x0F829.
like poke 0x0F829, 255
so need do in the python (how?)


RE: POKE & PEEK... - snippsat - Oct-29-2020

There is no POKE and PEEK( accessing the contents of a specific memory cell referenced by its memory address) in Python.
That said Python is used a lot for(board(Arduino,Raspberry Pi,microcontrollers,..ect) as higher interface with tool that can access the lower level stuff.
There is MicroPython that can access many board/microcontrollers,ask on there forum.
There is ctypes and CFFI that can interact with almost any C code from Python.
Do you have a Serial I/O to the board?, then can also mention pySerial.


RE: POKE & PEEK... - ATARI_LIVE - Nov-03-2020

I do not use serial at all, I made the board was long time ago, I use a MCU chip which it has address and data bus into the PCI-E. the MCU has 256 I/O for external.
I had a Pascal [ input and output commands ] and QBasic [ inp and out commands ] program with the windows 95 with this board and works as well.

that's what I am looking such as inp/out in python if possible.