Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Python code a Max7219/7221 7 segment driver
Post: RE: Python code a Max7219/7221 7 segment driver
I found my issue with the MAX7219 and it was my not carefully reading the MAX7219/7221 documentation. I was using one single seven segment display for testing. I used a command byte of 0x00 to write... |
|
Aggie64 |
General Coding Help |
11 |
1,146 |
Nov-30-2022, 11:54 PM |
|
|
Thread: Python code a Max7219/7221 7 segment driver
Post: RE: Python code a Max7219/7221 7 segment driver
Sorry for the delay, got locked out of the forum.
the scope data, in hex, is 0F01 09FF 0A0A 0B00 0003
the first byte of each group is the command and the 2nd byte is the command's argument.
0F01 makes... |
|
Aggie64 |
General Coding Help |
11 |
1,146 |
Nov-24-2022, 02:10 AM |
|
|
Thread: Python code a Max7219/7221 7 segment driver
Post: RE: Python code a Max7219/7221 7 segment driver
Attached is the circuit I am using.
The 7 Segment displays are something I purchased from Jameco several years ago.
They are a Vishay red led. Manf. Part. No is TDSR3163-G
The initialization comma... |
|
Aggie64 |
General Coding Help |
11 |
1,146 |
Nov-22-2022, 02:03 AM |
|
|
Thread: Python code a Max7219/7221 7 segment driver
Post: RE: Python code a Max7219/7221 7 segment driver
I forgot to mention that there are three .1uf caps between ground and +5 and also between ground and 3.3v
Next to the MAX7219 there is a 0.1uf and 10uf cap. Both grounds are connected
Attached is a s... |
|
Aggie64 |
General Coding Help |
11 |
1,146 |
Nov-21-2022, 04:48 PM |
|
|
Thread: Python code a Max7219/7221 7 segment driver
Post: RE: Python code a Max7219/7221 7 segment driver
I should have mentioned earlier that I have previously used a MAX7219 in building a Digital/Binary clock which uses a Microchip processor instead of a Raspberry Pi.
I have compared the MAX7219 inputs... |
|
Aggie64 |
General Coding Help |
11 |
1,146 |
Nov-21-2022, 02:13 PM |
|
|
Thread: Python code a Max7219/7221 7 segment driver
Post: RE: Python code a Max7219/7221 7 segment driver
Yes, I have searched for some examples of python code and have not found anything. I have been referencing the MAX7219 datasheet. I am using a digital scope and looking at the data and everything loo... |
|
Aggie64 |
General Coding Help |
11 |
1,146 |
Nov-20-2022, 11:24 PM |
|
|
Thread: Python code a Max7219/7221 7 segment driver
Post: Python code a Max7219/7221 7 segment driver
I am trying to use Pythons 3 SPI code to write directly to a MAX7219/7221 seven segment driver. I have written the code and connected a MAX7219 to my Raspberry Pi 4. I want to write directly to the ... |
|
Aggie64 |
General Coding Help |
11 |
1,146 |
Nov-17-2022, 10:31 PM |
|
|
Thread: Python List Issue
Post: RE: Python List Issue
Many thanks for your explanation. I am relatively new to Python and still have many things to learn |
|
Aggie64 |
General Coding Help |
5 |
779 |
Jun-30-2022, 09:15 PM |
|
|
Thread: Python List Issue
Post: RE: Python List Issue
I simplified my code and used the forum standards.
Why is the item "a" removed from list2 when the item "a" is removed from list1?
list1=["a","b","c"]
list2=list1
list1.remove("a")
print("list1 = ",... |
|
Aggie64 |
General Coding Help |
5 |
779 |
Jun-30-2022, 02:15 PM |
|
|
Thread: Python List Issue
Post: Python List Issue
1. create a list named All_Items_List
2. set All_Items_List_Copy = All_Items_List
3. create Subset_list which has one less item than All_Items_List and All_Items_List_Copy
4. remove all items from A... |
|
Aggie64 |
General Coding Help |
5 |
779 |
Jun-29-2022, 02:15 PM |
|
|
Thread: Date format error getting weekday value
Post: RE: Date format error getting weekday value
(May-29-2022, 06:56 PM)Axel_Erfurt Wrote: You have
'05/09/2022'
the you should use
"%m/%d/%Y"
Thank you very very much, your reply fixed the problem!!! |
|
Aggie64 |
General Coding Help |
2 |
778 |
May-29-2022, 07:04 PM |
|
|
Thread: Date format error getting weekday value
Post: Date format error getting weekday value
I get the following error on line 4 when running the code below:
valueError: timedata '05/09/2022' does not match format '%m %d %Y'
I am trying to get a weekday value from 0-6 from a date represented... |
|
Aggie64 |
General Coding Help |
2 |
778 |
May-29-2022, 06:51 PM |
|
|
Thread: Write to a LCD display using i2c to a Raspberry Pi using i2c 6398 4x20 LCD
Post: RE: Write to a LCD display using i2c to a Raspberr...
my LCD is from sparkfun and I also have one from New Haven.
I don't understand why I can't find an example of writing ascii characters on an i2c bus to a character LCD display.
I will take a look at ... |
|
Aggie64 |
General Coding Help |
4 |
782 |
Apr-28-2022, 07:26 PM |
|
|
Thread: Write to a LCD display using i2c to a Raspberry Pi using i2c 6398 4x20 LCD
Post: RE: Write to a LCD display using i2c to a Raspberr...
(Apr-28-2022, 03:10 AM)bowlofred Wrote: I wouldn't expect most character LCDs to speak i2c. Do you have one from Adafruit or similar? They have a library for their i2c backpack that you might be a... |
|
Aggie64 |
General Coding Help |
4 |
782 |
Apr-28-2022, 07:22 PM |
|
|
Thread: Write to a LCD display using i2c to a Raspberry Pi using i2c 6398 4x20 LCD
Post: RE: Write to a LCD display using i2c to a Raspberr...
the 6398 is a typo which should not be there |
|
Aggie64 |
General Coding Help |
4 |
782 |
Apr-28-2022, 12:50 AM |
|
|
Thread: Write to a LCD display using i2c to a Raspberry Pi using i2c 6398 4x20 LCD
Post: Write to a LCD display using i2c to a Raspberry Pi...
I have been unable to find out how to write normal ascii data to a LCD display using i2c.
One of the code snippets I have tried is:
Bus=smbus,SMBus(1)
Bus.write_byte_data(addr,register,value)
and
B... |
|
Aggie64 |
General Coding Help |
4 |
782 |
Apr-28-2022, 12:49 AM |
|
|
Thread: Write and read back data
Post: RE: Write and read back data
I meant to say I don't understand the difference in f.read(content) vs content=f.read(). |
|
Aggie64 |
General Coding Help |
6 |
1,000 |
Apr-18-2022, 01:02 PM |
|
|
Thread: Write and read back data
Post: RE: Write and read back data
(Apr-18-2022, 12:59 PM)Aggie64 Wrote: Your code worked!!! Many thanks.
I don't understand the difference in f.write(content) vs content=f.read().
I need to do more reading.
Thanks again **smile** |
|
Aggie64 |
General Coding Help |
6 |
1,000 |
Apr-18-2022, 01:00 PM |
|
|
Thread: Write and read back data
Post: RE: Write and read back data
Your code worked!!! Many thanks.
I don't understand the difference in f.write(content) vs content=f.read().
I need to do more reading.
Thanks again **smile** |
|
Aggie64 |
General Coding Help |
6 |
1,000 |
Apr-18-2022, 12:59 PM |
|
|
Thread: Write and read back data
Post: Write and read back data
I have a working Python 3 program that reads XML data from a URL and processes the data received
The code shown below is how the data is received
req= urllib.Request(url,headers=.....)
content = urll... |
|
Aggie64 |
General Coding Help |
6 |
1,000 |
Apr-17-2022, 09:01 PM |