Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
POKE & PEEK...
#1
In the basic language use POKE and PEEK. what do in python?
Reply
#2
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?)
Reply
#3
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.
Reply
#4
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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020