-
-
-
Hi, Gordon!
If I usevar lcd = require("HD44780").connect(A1,A2,A3,A4,A5,A6);
It works well on My vldiscovery board, I can give out text and variables to LCD.
If use alsovar sensor = require("DS18B20").connect(B1);
it gives me a lot of errors like
ERROR: Function not found! Skipping. at line 1 col 30 var lcd = require("HD44780").connect(A1,A2,A3,A4,A5,A6); ^ =undefined ERROR: Using '.' operator on non-object at line 1 col 8 lcd.clear(); ^ =undefined ERROR: Using '.' operator on non-object at line 1 col 8 lcd.setCursor(0,0); ^ =undefined ERROR: Using '.' operator on non-object at line 1 col 8 lcd.print("Current data:"); ^ =undefined ERROR: Using '.' operator on non-object at line 1 col 8 lcd.setCursor(4,1); ^ =undefined ERROR: Using '.' operator on non-object at line 1 col 8 lcd.print("B1 = ");
Is It the restriction of non-multitask, or someth. else? Thanks.
-
-
-
No it doesn't, It says:
save() =undefined Erasing Flash....... Programming 3810 Bytes....... Checking... Done! >BTN.read() =true >
and
> _____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |_____|___| _|_| |___|_|_|_|___| |_| http://www.espruino.com 1v44 Copyright 2013 Gordon Williams ------------------------------------------- KickStarter Version ------------------------------------------- >
after reset button.
-
-
sure...I tryed to include save(); on right panel, also tryed to put save() and enter - no effect..
Tryed erase chip in st-link and erase all the sectors, then download the firmware. After downloading sample code I've got=undefined
save()
=undefined
Erasing Flash.......
Programming 3810 Bytes.......
Checking...
Done!OMG!!!
-
Dear StuntMonkeh, could you please help and repeat the code snippet from this topic with onInit function: http://forum.espruino.com/conversations/334/#comment3836 thanks!
-
-
-
-
-
Hi, I didn't. Try to use Ver1.44 https://espruino-nightly.noda.se/2013-12-13/stm32vldiscovery/
but It didn't help me. I asked Gordon about It once again: http://forum.espruino.com/conversations/334/#comment3774 -
Gordon, I've uploaded:
function onInit() {
LED2.write(1);
}
save();
And Led2 doesn't light after power off - power On.
I used espruino ver1.43 compiled from github.
If I upload the code from webIDE not first time, I've got the message likesave();
=undefined
Erasing Flash.....
Programming 3810 Bytes.......
Checking...
There were 257 errors!
Even after reset(); save();
What the errors, and how can I manage this situation? -
-
sorry, Hi, all
in web IDE if I put
require("Encoder").connect(A1,A2,function (direction) {
step += direction;
print(step);
});
i get
ERROR: Function not found! Skipping. at line 1 col 20
require("Encoder").connect(A1,A2,function (direction) {
at the moment I have connected internet
Gordon, what can be problem? -
-
-
-
Hi, Gordon, Hi all!
according to the TI instructions I tryed to initialize cc3000. (i've got the module from
embeddedadventures)
here is the code snippet, I've used:SPI_OPERATION_WRITE=0x01; HCI_TYPE_COMMAND=0x01; HCI_COMMAND_SIMPLE_LINK_START=0x4000; SPI1.setup(); digitalWrite(B0,0); // Disable the module by setting EN(B0) low while(digitalRead(C5)==0){}; // Wait for IRQ line (C5) to go high digitalWrite(B0,1); // Enable the module by setting EN high while(digitalRead(C5)){}; // Wait for IRQ line to go low digitalWrite(C4,1); //Set CS line (C4) high temp1=2; while(temp1-->0){}; // Wait 50 µs (probably it takes not 50us, is it critically?) SPI1.send(SPI_OPERATION_WRITE,A4); SPI1.send(0x00,A4); // Send via SPI: 0x00 (length MSB) SPI1.send(0x05,A4); // Send via SPI: 0x05 (length LSB) SPI1.send(0x00,A4); // Send via SPI: 0x00 (busy 0) temp1=2; while(temp1-->0){}; // Wait 50 µs SPI1.send(0x00,A4); // Send via SPI: 0x00 (busy 1) SPI1.send(HCI_TYPE_COMMAND,A4); SPI1.send(HCI_COMMAND_SIMPLE_LINK_START & 0xff); //Send via SPI: HCI_COMMAND_SIMPLE_LINK_START (LSB) SPI1.send(HCI_COMMAND_SIMPLE_LINK_START >> 8); //Send via SPI: HCI_COMMAND_SIMPLE_LINK_START (MSB) SPI1.send(0x01,A4); // Send via SPI: 0x01 (1 byte payload) SPI1.send(0x01,A4); // Send via SPI: PatchesRequest (0x00 = Don’t load patches 0x01 = Load patches) digitalWrite(C4,0); //Set CS line low while(digitalRead(C5)==1){}; // Wait for IRQ line to go low ans = SPI1.send(0x00,A4);
monitoring "ans" variable by lcd indicator shows me always zero, but must contain the answer from the module.
what is my mistake ? -
-
Hi, Gordon, hi All!
After dodwnloading some code like A#.write(1); B#.write(1) etc. , I've checked that It works.
then I put reset(); command, and the board stoped and couldn't connect again. But trying to reload the board thru the ST-Link utility i see only "couldn't connect to target" and recomendation from this forum to download thru the "press and hold the reset button of the board and choose the Menu item "Target" -> "Connect" (or click on the connect icon). Release the reset button." doesn't work even after tens of attempts.. ouhhh, did I kill It ???Update: I connected thru the terminal, and now the log looks like =undefined
echo(0);
=undefined
save();
=undefined
Erasing Flash.....
Programming 3810 Bytes.......
Checking...
There were 246 errors!Whath the errors? how can I reset the board?
Thanks! -
I haven't been here for a while and probably missed some things, but the LCD sample code for HD44780, worked on 1v44, doesn't work more on 1v63.
Could some one say why? thanks!