I have question.
I sent <html><h1>Hello!! This is PropForth5.5</h1></html> to client.
Linux and smartphone(geanea) immidoately display webpage from ESP-WROOM-02(192.168.1.11)
But smartphone(VAIO) and Windows8.1 display webpage after 3minutes.
Why smartphone(VAIO) and Windows8.1 take much time to display webpage?
since a few days I work with propforth and found the i2c_utility_0.2.1.f. Great collection.
On my breadboard a ADAFruit LED Driver HT16K33 is connectet. With i2c_detect I can see the eeprom and
the DS3132 connectet too but not the HT16K33. Another Forth system find it on $E0 and my .spin driver is working
very well with the HT16K33.
Any idea whats with the i2c tool? I try to check the source but cant find anything. And is it possible to get the ht16k33 driver?
Thank you very much
Hello and thanks.
My HT16K33 works now. It was in confuse Vcc and Vi2c when I conect it to the I2C connections for the EEPROM.
On other PIN's for I2C you can run the HT16K33 with connected Vi2c(without Vcc)
Now, I have to change the code for 14-segment display.
Hi.
Operation voltage of HT16K33 is 4.5V-5.5V.
Propeller operrate on 3.3V.
So,bidirectinal-level-shifter need connection between propeller and HT16K33 on SCL and SDA.
I have some old graphic 512x256 EL panels that I used many years ago in some of the first digital display panels for lift displays and they were mounted portrait style one above the other. Seeing you are digging up some old displays I figure I could dig those out and give it a bash too.
However I must say that I grabbed your code and converted it across into Tachyon Forth to give me an insight into strengths and weaknesses but I am still assured that I made the right choice to implement Tachyon the way I did
But there are still ways to improve the readability and efficiency of any code though. For instance you write a loop just to clear a buffer:
: clrbufASCII buffer d36 0 do h20 buffer i + C! loop drop ;
When a standard FILL command does the same thing faster and simpler:
: clrbufASCII buffer 36 $20 FILL ;
Then I tried to make head or tail of convCode which I see from the datasheet for that particular part favors Katakana for the $20..$5F range. Your code:
\ ( n1 -- n2 ) n1:char-code(Only ASCII code) n2:converted code
: convCode
h20 over h40 <
if
-
else
over h3F > if + else drop then
then
;
Could have been much more readable if you simply offset first then compare and adjust.
: convCode $20 - DUP $1F > IF $40 + THEN ;
In fact, even this could be simplified with a sneaky trick:
: convCode $20 - DUP $1F > $40 AND + ;
Anyway, I reduced the source code to a fraction of the original and made the HDSP display an output device and simply print to it normally like this snippet:
: demo
init prtALL
test 500 ms
HDSP PRINT" TEST" 500 ms
PRINT" MAY THE FORTH BE WITH YOU."
defineUDC
I realize that you may be quite happy using PropForth but if you ever really wanted to compare strengths and weaknesses of different Forths then this is the perfect way to do so and have fun at the same time.
I made DogLifeClock.
I use built-in-Kanji LCD(LM4049).
It display name/current time/Birthday/Age (In human age)/LivingDays.
If Dog die, this diasplay only name/BirthDay/DeathDay/LivingDays by removing short pin(P13).
That is beautiful - and also sad, we unexpectedly lost our own Shiba three weeks ago, just after her 15th birthday. I wish your Shiba many more years, and they can usually live longer than any other type of dog.
Ah, caskaz, I see by the heartbeat that you are still alive.
Nice project and nicely documented too.
I see you did some work with floating point. It's a pity someone can't do something to interface the F32 "ROM" in Tachyon as I've only done a very rudimentary interface since I never use it myself.
Comments
I try to operate webserver on ESP-WROOM-02(ESP8266).
Webpage display on client PC.
But it take much time(3minutes).
Client PC Linux 192.168.1.3
Windows8.1 192.168.1.118
ESP-WROOM-02 192.168.1.11
Both Pc is same result.
I attached text from ESP-WROOM-02 below;
Why webpage take 3 minuts?
Any advise please.
Enjoy!
Mike
I sent data below;
Content-Length:50 <html><h1>Hello!! This is PropForth5.5</h1></html>
string[Content-Length:50 ] seems to deal as string.
Browser took 3minuts.
What is wrong?
I add CIPCLOSE=0 following CIPSEND.
Linux and smartphon(geanea) Immediately display Webpage.
But Window8.1 and smartphon(sony) display after 3minuts.
Also close the connection after sending the data.
See "server response" here : https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol
"content-length" is not required if all else is correct.
I have question.
I sent <html><h1>Hello!! This is PropForth5.5</h1></html> to client.
Linux and smartphone(geanea) immidoately display webpage from ESP-WROOM-02(192.168.1.11)
But smartphone(VAIO) and Windows8.1 display webpage after 3minutes.
Why smartphone(VAIO) and Windows8.1 take much time to display webpage?
I modified receiving "SEND OK" from ESP-WROOM-02.
Trouble has gone.
Linux/Windows8.1/smartphone(geanee)/smartphone(VAIO) immidiately display webpage.
I wrote code for TTP229BSF.
This touch-pad is easy.
I can detect HT16K33.
I use QuickStart board. Please check below;
https://github.com/caskaz/PropForth5.5/tree/master/HW_Extensions/i2c_device
Thank you very much cas )
Time axis is 1.28sec(10msec/1dot)
Update for pulse-value is 2seconds by 2seconds.
LCD:160x128dots (ST7735R)
Sensor:NJL5501R
ADC:MCP3204
My HT16K33 works now. It was in confuse Vcc and Vi2c when I conect it to the I2C connections for the EEPROM.
On other PIN's for I2C you can run the HT16K33 with connected Vi2c(without Vcc)
Now, I have to change the code for 14-segment display.
astralas
Operation voltage of HT16K33 is 4.5V-5.5V.
Propeller operrate on 3.3V.
So,bidirectinal-level-shifter need connection between propeller and HT16K33 on SCL and SDA.
with a little bit loss of brighness
Today, my dog's birthday.
She is 14years old.
Manufacturing date is 1997/47weeks.
However I must say that I grabbed your code and converted it across into Tachyon Forth to give me an insight into strengths and weaknesses but I am still assured that I made the right choice to implement Tachyon the way I did
But there are still ways to improve the readability and efficiency of any code though. For instance you write a loop just to clear a buffer: When a standard FILL command does the same thing faster and simpler:
Then I tried to make head or tail of convCode which I see from the datasheet for that particular part favors Katakana for the $20..$5F range. Your code: Could have been much more readable if you simply offset first then compare and adjust. In fact, even this could be simplified with a sneaky trick:
Anyway, I reduced the source code to a fraction of the original and made the HDSP display an output device and simply print to it normally like this snippet:
I realize that you may be quite happy using PropForth but if you ever really wanted to compare strengths and weaknesses of different Forths then this is the perfect way to do so and have fun at the same time.
I use built-in-Kanji LCD(LM4049).
It display name/current time/Birthday/Age (In human age)/LivingDays.
If Dog die, this diasplay only name/BirthDay/DeathDay/LivingDays by removing short pin(P13).
Displayed second derivative wave of photoplethysmogram too.
LCD:ST7735
rtc:DS3231
ThermalPrinter:CSN-A2-T
IRsensor:RPR220
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3465827/
Nice project and nicely documented too.
I see you did some work with floating point. It's a pity someone can't do something to interface the F32 "ROM" in Tachyon as I've only done a very rudimentary interface since I never use it myself.