Re: Thermo 7 segments - little problem
Hello Fratello,
your code
Code:
PORTA=_7seg1 ' enable hundreds 7 segment
displayport = digit_1 ' display
GoSub DelayBetweenEachDigit
Best I remember and for reasons I don't you cannot assign a port value just that way. Something about BLA = bla being a T/F comparason rather than assignment, don't remember just fuzzy . . . I believe PORTA=_7seg1 is a comparason operator and putting ! or ~ ahead of it converts it to a "Bitwise" operation
Try this
Code:
PORTA=~_7seg1 ' enable hundreds 7 segment
displayport = digit_1 ' display
GoSub DelayBetweenEachDigit
and if that inverts your display then use 2 nots
PORTA=~~_7seg1 ' enable hundreds 7 segment
displayport = digit_1 ' display
GoSub DelayBetweenEachDigit
As I have not really studied your code I may have misread where your port display is, in any event use not or 2 nots before that port assignment.
Last edited by Archangel; - 6th July 2013 at 00:28.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks