Re: Mizar32 - What order do functions have to appear?
> Scratch that, I hit enter and it worked. Great! I'm glad you're able to use your board. Have a lot of fun with it! :) Happy hacking! R On 17 December 2015 at 22:50, Josh wrote: > Scratch that, I hit enter and it worked. > > > On 17/12/15 21:14, Josh wrote: > > Sorry for waiting so long before replying. I have moved to Linux, I have > installed Picolisp and installed minicom but running minicom just returns > "minicom: cannot open /dev/ttyACM0: No such file or directory" what do I do > about this? Thanks. > > On 03/12/15 12:25, J B wrote: > > Thanks for the quick reply. I'm not using Linux, my Mizar lives at college > where I am building my project for college. The college PC's are using Win > 7 and I don't think they have any terminal software installed on them, > although HyperTerm is installed by default, it's probably blocked as I > can't find it. I may be able to get hyperterm unblocked or bring in a > portable terminal emulator on a usb stick, but I'm not sure. Do I need any > special cables for the emulator or is it just the USB power cable? Also, > once that's set up how do I invoke Picolisp? Thanks. > > ---------- > From: ramangopa...@gmail.com > To: picolisp@software-lab.de > Subject: Re: Mizar32 - What order do functions have to appear? > Date: Wed, 2 Dec 2015 03:30:10 +0100 > > > Dear JB, greetings! > > > So I started creating a little program to act as a digital counter > > with the blue led flashing at each change of logic state, it came to > > Perfect way to begin! > > > my attention very quickly that there is some hidden format that the > > code has to be in and some rules that I can’t find written. It seems > > Actually, nothing is hidden or implicit at all. :) So, let's fix your > problem for you. > > > to me that you can’t set a pin direction unless you are going to use > > it in the immediate program and I personally can’t seem to get > > smaller functions of “sethigh” and “setlow” to ever work. > > You can set the direction of a pin in any context in PicoLisp. The > code you have in autorun.l must set its direction. Here's how it > works. Think of it as the default state of the pin. Some pins can be > high by default; some can be low. This is MCU specific - This > particular device works this way. The same code on an LM3S8962 Texas > Instruments Cortex clone behaves the other way. > > # Will set the dir of PB_29 and turn the blue LED "on" > # automatically. > (pio-pin-setdir *pio-output* 'PB_29) > > # Will turn the blue LED "off". > (pio-pin-sethigh 'PB_29) > > So, your function should be: > > (de high (pin) >(pio-pin-setlow pin) ) > > > Is there like a comprehensive list of the way I need to be writing > > these programs? > > It's regular PicoLisp. No different. Just that it runs on the MCU. :) > > > I experiment a lot and I do not have the vga board so I have no > > console on screen, I’m kinda running blind and need all the heads up > > I can. > > Oh! This is quite easy. Can you please use a serial terminal emulator? > I use minicom. It's a nice tool. In case you don't have it, please get > it (or another of your choice) and configure it for 115200 baud, 8N1 > and no hardware flow control. So, assuming an Ubuntu GNU/Linux and > minicom: > > $ sudo apt-get install minicom > $ minicom -D /dev/ttyACM0 > > The above should get you the Hempl shell. Invoke PicoLisp directly > from the shell. You can then type away interactively - like you would > with regular PicoLisp. You can also edit PicoLisp files on your SD > card using iv, the vi clone. > > Hempl# iv /mmc/autorun.l > Hempl# picolisp /mmc/autorun.l > > Please let me know if this helps you. Good luck! > > R > > On 1 December 2015 at 23:08, J B wrote: > > So I started creating a little program to act as a digital counter with > the blue led flashing at each change of logic state, it came to my > attention very quickly that there is some hidden format that the code has > to be in and some rules that I can’t find written. It seems to me that you > can’t set a pin direction unless you are going to use it in the immediate > program and I personally can’t seem to get smaller functions of “sethigh” > and “setlow” to ever work. Is there like a comprehensive list of the way I > need to be writing these programs? I experiment a lot and I do not have the > vga board so I have no console on screen, I’m kinda running blind and need > all the heads up I can. Thanks. > > > > >
Re: Mizar32 - What order do functions have to appear?
Scratch that, I hit enter and it worked. On 17/12/15 21:14, Josh wrote: Sorry for waiting so long before replying. I have moved to Linux, I have installed Picolisp and installed minicom but running minicom just returns "minicom: cannot open /dev/ttyACM0: No such file or directory" what do I do about this? Thanks. On 03/12/15 12:25, J B wrote: Thanks for the quick reply. I'm not using Linux, my Mizar lives at college where I am building my project for college. The college PC's are using Win 7 and I don't think they have any terminal software installed on them, although HyperTerm is installed by default, it's probably blocked as I can't find it. I may be able to get hyperterm unblocked or bring in a portable terminal emulator on a usb stick, but I'm not sure. Do I need any special cables for the emulator or is it just the USB power cable? Also, once that's set up how do I invoke Picolisp? Thanks. From: ramangopa...@gmail.com To: picolisp@software-lab.de Subject: Re: Mizar32 - What order do functions have to appear? Date: Wed, 2 Dec 2015 03:30:10 +0100 Dear JB, greetings! > So I started creating a little program to act as a digital counter > with the blue led flashing at each change of logic state, it came to Perfect way to begin! > my attention very quickly that there is some hidden format that the > code has to be in and some rules that I can’t find written. It seems Actually, nothing is hidden or implicit at all. :) So, let's fix your problem for you. > to me that you can’t set a pin direction unless you are going to use > it in the immediate program and I personally can’t seem to get > smaller functions of “sethigh” and “setlow” to ever work. You can set the direction of a pin in any context in PicoLisp. The code you have in autorun.l must set its direction. Here's how it works. Think of it as the default state of the pin. Some pins can be high by default; some can be low. This is MCU specific - This particular device works this way. The same code on an LM3S8962 Texas Instruments Cortex clone behaves the other way. # Will set the dir of PB_29 and turn the blue LED "on" # automatically. (pio-pin-setdir *pio-output* 'PB_29) # Will turn the blue LED "off". (pio-pin-sethigh 'PB_29) So, your function should be: (de high (pin) (pio-pin-setlow pin) ) > Is there like a comprehensive list of the way I need to be writing > these programs? It's regular PicoLisp. No different. Just that it runs on the MCU. :) > I experiment a lot and I do not have the vga board so I have no > console on screen, I’m kinda running blind and need all the heads up > I can. Oh! This is quite easy. Can you please use a serial terminal emulator? I use minicom. It's a nice tool. In case you don't have it, please get it (or another of your choice) and configure it for 115200 baud, 8N1 and no hardware flow control. So, assuming an Ubuntu GNU/Linux and minicom: $ sudo apt-get install minicom $ minicom -D /dev/ttyACM0 The above should get you the Hempl shell. Invoke PicoLisp directly from the shell. You can then type away interactively - like you would with regular PicoLisp. You can also edit PicoLisp files on your SD card using iv, the vi clone. Hempl# iv /mmc/autorun.l Hempl# picolisp /mmc/autorun.l Please let me know if this helps you. Good luck! R On 1 December 2015 at 23:08, J B <mailto:k1llfre...@hotmail.co.uk>> wrote: So I started creating a little program to act as a digital counter with the blue led flashing at each change of logic state, it came to my attention very quickly that there is some hidden format that the code has to be in and some rules that I can’t find written. It seems to me that you can’t set a pin direction unless you are going to use it in the immediate program and I personally can’t seem to get smaller functions of “sethigh” and “setlow” to ever work. Is there like a comprehensive list of the way I need to be writing these programs? I experiment a lot and I do not have the vga board so I have no console on screen, I’m kinda running blind and need all the heads up I can. Thanks.
Re: Mizar32 - What order do functions have to appear?
Sorry for waiting so long before replying. I have moved to Linux, I have installed Picolisp and installed minicom but running minicom just returns "minicom: cannot open /dev/ttyACM0: No such file or directory" what do I do about this? Thanks. On 03/12/15 12:25, J B wrote: Thanks for the quick reply. I'm not using Linux, my Mizar lives at college where I am building my project for college. The college PC's are using Win 7 and I don't think they have any terminal software installed on them, although HyperTerm is installed by default, it's probably blocked as I can't find it. I may be able to get hyperterm unblocked or bring in a portable terminal emulator on a usb stick, but I'm not sure. Do I need any special cables for the emulator or is it just the USB power cable? Also, once that's set up how do I invoke Picolisp? Thanks. From: ramangopa...@gmail.com To: picolisp@software-lab.de Subject: Re: Mizar32 - What order do functions have to appear? Date: Wed, 2 Dec 2015 03:30:10 +0100 Dear JB, greetings! > So I started creating a little program to act as a digital counter > with the blue led flashing at each change of logic state, it came to Perfect way to begin! > my attention very quickly that there is some hidden format that the > code has to be in and some rules that I can’t find written. It seems Actually, nothing is hidden or implicit at all. :) So, let's fix your problem for you. > to me that you can’t set a pin direction unless you are going to use > it in the immediate program and I personally can’t seem to get > smaller functions of “sethigh” and “setlow” to ever work. You can set the direction of a pin in any context in PicoLisp. The code you have in autorun.l must set its direction. Here's how it works. Think of it as the default state of the pin. Some pins can be high by default; some can be low. This is MCU specific - This particular device works this way. The same code on an LM3S8962 Texas Instruments Cortex clone behaves the other way. # Will set the dir of PB_29 and turn the blue LED "on" # automatically. (pio-pin-setdir *pio-output* 'PB_29) # Will turn the blue LED "off". (pio-pin-sethigh 'PB_29) So, your function should be: (de high (pin) (pio-pin-setlow pin) ) > Is there like a comprehensive list of the way I need to be writing > these programs? It's regular PicoLisp. No different. Just that it runs on the MCU. :) > I experiment a lot and I do not have the vga board so I have no > console on screen, I’m kinda running blind and need all the heads up > I can. Oh! This is quite easy. Can you please use a serial terminal emulator? I use minicom. It's a nice tool. In case you don't have it, please get it (or another of your choice) and configure it for 115200 baud, 8N1 and no hardware flow control. So, assuming an Ubuntu GNU/Linux and minicom: $ sudo apt-get install minicom $ minicom -D /dev/ttyACM0 The above should get you the Hempl shell. Invoke PicoLisp directly from the shell. You can then type away interactively - like you would with regular PicoLisp. You can also edit PicoLisp files on your SD card using iv, the vi clone. Hempl# iv /mmc/autorun.l Hempl# picolisp /mmc/autorun.l Please let me know if this helps you. Good luck! R On 1 December 2015 at 23:08, J B <mailto:k1llfre...@hotmail.co.uk>> wrote: So I started creating a little program to act as a digital counter with the blue led flashing at each change of logic state, it came to my attention very quickly that there is some hidden format that the code has to be in and some rules that I can’t find written. It seems to me that you can’t set a pin direction unless you are going to use it in the immediate program and I personally can’t seem to get smaller functions of “sethigh” and “setlow” to ever work. Is there like a comprehensive list of the way I need to be writing these programs? I experiment a lot and I do not have the vga board so I have no console on screen, I’m kinda running blind and need all the heads up I can. Thanks.
Re: Mizar32 - What order do functions have to appear?
Dear JB, greetings! Firstly, sorry for the slight delay in my reply. > terminal software installed on them, although HyperTerm is installed > by default, it's probably blocked as I can't find it. I Please see this [1] link. TeraTerm helps? OR as John suggested, Termite might work too! Thanks John! > any special cables for the emulator or is it just the USB power > cable? Nothing else at all. Just the USB power cable. :) That cable serves two purposes - board power and RS-232 emulation over USB (using Atmel's USB_CDC software stack). I'm pretty sure Mizar32 can work with Windows - I don't see a reason why it can't work. The Mizar32 should get recognized as a serial device. For that, I think you need a few drivers from Atmel. I'm not very familiar with the Windows side of things. But for a quick solution, would it be very hard for you to install GNU/Linux on Windows within a VM? (I know it's an ugly solution). I can check with the guys at SimpleMachines if they can point us in the direction of the drivers. I'll post again as soon as I have some news. > Also, once that's set up how do I invoke Picolisp? Thanks. Once you have the handshake between the PC and your Mizar32, simply press "reset" on your board. (SW-2; I guess). In any case, you're looking for the switch which is away from the voltage regulator IC. (There are just 2 switches on the board). Once reset, you should see the Hempl prompt on your serial terminal emulator. Let me get back to you with more information. R References: [1]: wiki.eluaproject.net/Terminal Emulators for eLua On 3 December 2015 at 13:25, J B wrote: > Thanks for the quick reply. I'm not using Linux, my Mizar lives at college > where I am building my project for college. The college PC's are using Win > 7 and I don't think they have any terminal software installed on them, > although HyperTerm is installed by default, it's probably blocked as I > can't find it. I may be able to get hyperterm unblocked or bring in a > portable terminal emulator on a usb stick, but I'm not sure. Do I need any > special cables for the emulator or is it just the USB power cable? Also, > once that's set up how do I invoke Picolisp? Thanks. > > ---------- > From: ramangopa...@gmail.com > To: picolisp@software-lab.de > Subject: Re: Mizar32 - What order do functions have to appear? > Date: Wed, 2 Dec 2015 03:30:10 +0100 > > > > Dear JB, greetings! > > > So I started creating a little program to act as a digital counter > > with the blue led flashing at each change of logic state, it came to > > Perfect way to begin! > > > my attention very quickly that there is some hidden format that the > > code has to be in and some rules that I can’t find written. It seems > > Actually, nothing is hidden or implicit at all. :) So, let's fix your > problem for you. > > > to me that you can’t set a pin direction unless you are going to use > > it in the immediate program and I personally can’t seem to get > > smaller functions of “sethigh” and “setlow” to ever work. > > You can set the direction of a pin in any context in PicoLisp. The > code you have in autorun.l must set its direction. Here's how it > works. Think of it as the default state of the pin. Some pins can be > high by default; some can be low. This is MCU specific - This > particular device works this way. The same code on an LM3S8962 Texas > Instruments Cortex clone behaves the other way. > > # Will set the dir of PB_29 and turn the blue LED "on" > # automatically. > (pio-pin-setdir *pio-output* 'PB_29) > > # Will turn the blue LED "off". > (pio-pin-sethigh 'PB_29) > > So, your function should be: > > (de high (pin) >(pio-pin-setlow pin) ) > > > Is there like a comprehensive list of the way I need to be writing > > these programs? > > It's regular PicoLisp. No different. Just that it runs on the MCU. :) > > > I experiment a lot and I do not have the vga board so I have no > > console on screen, I’m kinda running blind and need all the heads up > > I can. > > Oh! This is quite easy. Can you please use a serial terminal emulator? > I use minicom. It's a nice tool. In case you don't have it, please get > it (or another of your choice) and configure it for 115200 baud, 8N1 > and no hardware flow control. So, assuming an Ubuntu GNU/Linux and > minicom: > > $ sudo apt-get install minicom > $ minicom -D /dev/ttyACM0 > > The above should get you the Hempl shell. Invoke PicoLisp directly > from the shell. You can then type away interactively - like you would > with regular PicoLisp. You can also edit Pi
Re: Mizar32 - What order do functions have to appear?
Alrighty, well I just bought the rs232 and the i2c display module. Thanks for the help :) Sent from my iPhone > On Dec 3, 2015, at 2:37 PM, John Duncan wrote: > > yeah, you would either need a machine with a serial port or a usb-serial > adapter and serial cable. > >> On Thu, Dec 3, 2015 at 9:15 AM, J B wrote: >> I got termite but I don't know how to connect it up, don't I need the rs232 >> board as well? Right now I only have the base Mizar32B with the usb cable. >> >> Sent from my iPhone >> >>> On Dec 3, 2015, at 2:08 PM, John Duncan wrote: >>> >>> You could try Termite >>> >>> http://www.compuphase.com/software_termite.htm >>> >>>> On Thu, Dec 3, 2015 at 7:25 AM, J B wrote: >>>> Thanks for the quick reply. I'm not using Linux, my Mizar lives at college >>>> where I am building my project for college. The college PC's are using Win >>>> 7 and I don't think they have any terminal software installed on them, >>>> although HyperTerm is installed by default, it's probably blocked as I >>>> can't find it. I may be able to get hyperterm unblocked or bring in a >>>> portable terminal emulator on a usb stick, but I'm not sure. Do I need any >>>> special cables for the emulator or is it just the USB power cable? Also, >>>> once that's set up how do I invoke Picolisp? Thanks. >>>> >>>> From: ramangopa...@gmail.com >>>> To: picolisp@software-lab.de >>>> Subject: Re: Mizar32 - What order do functions have to appear? >>>> Date: Wed, 2 Dec 2015 03:30:10 +0100 >>>> >>>> >>>> Dear JB, greetings! >>>> >>>> > So I started creating a little program to act as a digital counter >>>> > with the blue led flashing at each change of logic state, it came to >>>> >>>> Perfect way to begin! >>>> >>>> > my attention very quickly that there is some hidden format that the >>>> > code has to be in and some rules that I can’t find written. It seems >>>> >>>> Actually, nothing is hidden or implicit at all. :) So, let's fix your >>>> problem for you. >>>> >>>> > to me that you can’t set a pin direction unless you are going to use >>>> > it in the immediate program and I personally can’t seem to get >>>> > smaller functions of “sethigh” and “setlow” to ever work. >>>> >>>> You can set the direction of a pin in any context in PicoLisp. The >>>> code you have in autorun.l must set its direction. Here's how it >>>> works. Think of it as the default state of the pin. Some pins can be >>>> high by default; some can be low This is MCU specific - This >>>> particular device works this way. The same code on an LM3S8962 Texas >>>> Instruments Cortex clone behaves the other way. >>>> >>>> # Will set the dir of PB_29 and turn the blue LED "on" >>>> # automatically. >>>> (pio-pin-setdir *pio-output* 'PB_29) >>>> >>>> # Will turn the blue LED "off". >>>> (pio-pin-sethigh 'PB_29) >>>> >>>> So, your function should be: >>>> >>>> (de high (pin) >>>>(pio-pin-setlow pin) ) >>>> >>>> > Is there like a comprehensive list of the way I need to be writing >>>> > these programs? >>>> >>>> It's regular PicoLisp. No different. Just that it runs on the MCU. :) >>>> >>>> > I experiment a lot and I do not have the vga board so I have no >>>> > console on screen, I’m kinda running blind and need all the heads up >>>> > I can >>>> >>>> Oh! This is quite easy. Can you please use a serial terminal emulator? >>>> I use minicom. It's a nice tool. In case you don't have it, please get >>>> it (or another of your choice) and configure it for 115200 baud, 8N1 >>>> and no hardware flow control. So, assuming an Ubuntu GNU/Linux and >>>> minicom: >>>> >>>> $ sudo apt-get install minicom >>>> $ minicom -D /dev/ttyACM0 >>>> >>>> The above should get you the Hempl shell. Invoke PicoLisp directly >>>> from the shell. You can then type away interactively - like you would >>>> with regular PicoLisp. You can also edit PicoLisp files on your SD >>>> card using iv, the vi clone. >>>> >>>> Hempl# iv /mmc/autorun.l >>>> Hempl# picolisp /mmc/autorun.l >>>> >>>> Please let me know if this helps you. Good luck! >>>> >>>> R >>>> >>>> On 1 December 2015 at 23:08, J B wrote: >>>> So I started creating a little program to act as a digital counter with >>>> the blue led flashing at each change of logic state, it came to my >>>> attention very quickly that there is some hidden format that the code has >>>> to be in and some rules that I can’t find written. It seems to me that you >>>> can’t set a pin direction unless you are going to use it in the immediate >>>> program and I personally can’t seem to get smaller functions of “sethigh” >>>> and “setlow” to ever work. Is there like a comprehensive list of the way I >>>> need to be writing these programs? I experiment a lot and I do not have >>>> the vga board so I have no console on screen, I’m kinda running blind and >>>> need all the heads up I can. Thanks. >>>> >>> >>> >>> >>> -- >>> John Duncan > > > > -- > John Duncan
Re: Mizar32 - What order do functions have to appear?
yeah, you would either need a machine with a serial port or a usb-serial adapter and serial cable. On Thu, Dec 3, 2015 at 9:15 AM, J B wrote: > I got termite but I don't know how to connect it up, don't I need the > rs232 board as well? Right now I only have the base Mizar32B with the usb > cable. > > Sent from my iPhone > > On Dec 3, 2015, at 2:08 PM, John Duncan wrote: > > You could try Termite > > http://www.compuphase.com/software_termite.htm > > On Thu, Dec 3, 2015 at 7:25 AM, J B wrote: > >> Thanks for the quick reply. I'm not using Linux, my Mizar lives at >> college where I am building my project for college. The college PC's are >> using Win 7 and I don't think they have any terminal software installed on >> them, although HyperTerm is installed by default, it's probably blocked as >> I can't find it. I may be able to get hyperterm unblocked or bring in a >> portable terminal emulator on a usb stick, but I'm not sure. Do I need any >> special cables for the emulator or is it just the USB power cable? Also, >> once that's set up how do I invoke Picolisp? Thanks. >> >> ---------- >> From: ramangopa...@gmail.com >> To: picolisp@software-lab.de >> Subject: Re: Mizar32 - What order do functions have to appear? >> Date: Wed, 2 Dec 2015 03:30:10 +0100 >> >> >> Dear JB, greetings! >> >> > So I started creating a little program to act as a digital counter >> > with the blue led flashing at each change of logic state, it came to >> >> Perfect way to begin! >> >> > my attention very quickly that there is some hidden format that the >> > code has to be in and some rules that I can’t find written. It seems >> >> Actually, nothing is hidden or implicit at all. :) So, let's fix your >> problem for you. >> >> > to me that you can’t set a pin direction unless you are going to use >> > it in the immediate program and I personally can’t seem to get >> > smaller functions of “sethigh” and “setlow” to ever work. >> >> You can set the direction of a pin in any context in PicoLisp. The >> code you have in autorun.l must set its direction. Here's how it >> works. Think of it as the default state of the pin. Some pins can be >> high by default; some can be low This is MCU specific - This >> particular device works this way. The same code on an LM3S8962 Texas >> Instruments Cortex clone behaves the other way. >> >> # Will set the dir of PB_29 and turn the blue LED "on" >> # automatically. >> (pio-pin-setdir *pio-output* 'PB_29) >> >> # Will turn the blue LED "off". >> (pio-pin-sethigh 'PB_29) >> >> So, your function should be: >> >> (de high (pin) >>(pio-pin-setlow pin) ) >> >> > Is there like a comprehensive list of the way I need to be writing >> > these programs? >> >> It's regular PicoLisp. No different. Just that it runs on the MCU. :) >> >> > I experiment a lot and I do not have the vga board so I have no >> > console on screen, I’m kinda running blind and need all the heads up >> > I can >> >> Oh! This is quite easy. Can you please use a serial terminal emulator? >> I use minicom. It's a nice tool. In case you don't have it, please get >> it (or another of your choice) and configure it for 115200 baud, 8N1 >> and no hardware flow control. So, assuming an Ubuntu GNU/Linux and >> minicom: >> >> $ sudo apt-get install minicom >> $ minicom -D /dev/ttyACM0 >> >> The above should get you the Hempl shell. Invoke PicoLisp directly >> from the shell. You can then type away interactively - like you would >> with regular PicoLisp. You can also edit PicoLisp files on your SD >> card using iv, the vi clone. >> >> Hempl# iv /mmc/autorun.l >> Hempl# picolisp /mmc/autorun.l >> >> Please let me know if this helps you. Good luck! >> >> R >> >> On 1 December 2015 at 23:08, J B wrote: >> >> So I started creating a little program to act as a digital counter with >> the blue led flashing at each change of logic state, it came to my >> attention very quickly that there is some hidden format that the code has >> to be in and some rules that I can’t find written. It seems to me that you >> can’t set a pin direction unless you are going to use it in the immediate >> program and I personally can’t seem to get smaller functions of “sethigh” >> and “setlow” to ever work. Is there like a comprehensive list of the way I >> need to be writing these programs? I experiment a lot and I do not have the >> vga board so I have no console on screen, I’m kinda running blind and need >> all the heads up I can. Thanks. >> >> >> > > > -- > John Duncan > > -- John Duncan
Re: Mizar32 - What order do functions have to appear?
I got termite but I don't know how to connect it up, don't I need the rs232 board as well? Right now I only have the base Mizar32B with the usb cable. Sent from my iPhone > On Dec 3, 2015, at 2:08 PM, John Duncan wrote: > > You could try Termite > > http://www.compuphase.com/software_termite.htm > >> On Thu, Dec 3, 2015 at 7:25 AM, J B wrote: >> Thanks for the quick reply. I'm not using Linux, my Mizar lives at college >> where I am building my project for college. The college PC's are using Win 7 >> and I don't think they have any terminal software installed on them, >> although HyperTerm is installed by default, it's probably blocked as I can't >> find it. I may be able to get hyperterm unblocked or bring in a portable >> terminal emulator on a usb stick, but I'm not sure. Do I need any special >> cables for the emulator or is it just the USB power cable? Also, once that's >> set up how do I invoke Picolisp? Thanks. >> >> From: ramangopa...@gmail.com >> To: picolisp@software-lab.de >> Subject: Re: Mizar32 - What order do functions have to appear? >> Date: Wed, 2 Dec 2015 03:30:10 +0100 >> >> >> Dear JB, greetings! >> >> > So I started creating a little program to act as a digital counter >> > with the blue led flashing at each change of logic state, it came to >> >> Perfect way to begin! >> >> > my attention very quickly that there is some hidden format that the >> > code has to be in and some rules that I can’t find written. It seems >> >> Actually, nothing is hidden or implicit at all. :) So, let's fix your >> problem for you. >> >> > to me that you can’t set a pin direction unless you are going to use >> > it in the immediate program and I personally can’t seem to get >> > smaller functions of “sethigh” and “setlow” to ever work. >> >> You can set the direction of a pin in any context in PicoLisp. The >> code you have in autorun.l must set its direction. Here's how it >> works. Think of it as the default state of the pin. Some pins can be >> high by default; some can be low This is MCU specific - This >> particular device works this way. The same code on an LM3S8962 Texas >> Instruments Cortex clone behaves the other way. >> >> # Will set the dir of PB_29 and turn the blue LED "on" >> # automatically. >> (pio-pin-setdir *pio-output* 'PB_29) >> >> # Will turn the blue LED "off". >> (pio-pin-sethigh 'PB_29) >> >> So, your function should be: >> >> (de high (pin) >>(pio-pin-setlow pin) ) >> >> > Is there like a comprehensive list of the way I need to be writing >> > these programs? >> >> It's regular PicoLisp. No different. Just that it runs on the MCU. :) >> >> > I experiment a lot and I do not have the vga board so I have no >> > console on screen, I’m kinda running blind and need all the heads up >> > I can >> >> Oh! This is quite easy. Can you please use a serial terminal emulator? >> I use minicom. It's a nice tool. In case you don't have it, please get >> it (or another of your choice) and configure it for 115200 baud, 8N1 >> and no hardware flow control. So, assuming an Ubuntu GNU/Linux and >> minicom: >> >> $ sudo apt-get install minicom >> $ minicom -D /dev/ttyACM0 >> >> The above should get you the Hempl shell. Invoke PicoLisp directly >> from the shell. You can then type away interactively - like you would >> with regular PicoLisp. You can also edit PicoLisp files on your SD >> card using iv, the vi clone. >> >> Hempl# iv /mmc/autorun.l >> Hempl# picolisp /mmc/autorun.l >> >> Please let me know if this helps you. Good luck! >> >> R >> >> On 1 December 2015 at 23:08, J B wrote: >> So I started creating a little program to act as a digital counter with the >> blue led flashing at each change of logic state, it came to my attention >> very quickly that there is some hidden format that the code has to be in and >> some rules that I can’t find written. It seems to me that you can’t set a >> pin direction unless you are going to use it in the immediate program and I >> personally can’t seem to get smaller functions of “sethigh” and “setlow” to >> ever work. Is there like a comprehensive list of the way I need to be >> writing these programs? I experiment a lot and I do not have the vga board >> so I have no console on screen, I’m kinda running blind and need all the >> heads up I can. Thanks. >> > > > > -- > John Duncan
Re: Mizar32 - What order do functions have to appear?
You could try Termite http://www.compuphase.com/software_termite.htm On Thu, Dec 3, 2015 at 7:25 AM, J B wrote: > Thanks for the quick reply. I'm not using Linux, my Mizar lives at college > where I am building my project for college. The college PC's are using Win > 7 and I don't think they have any terminal software installed on them, > although HyperTerm is installed by default, it's probably blocked as I > can't find it. I may be able to get hyperterm unblocked or bring in a > portable terminal emulator on a usb stick, but I'm not sure. Do I need any > special cables for the emulator or is it just the USB power cable? Also, > once that's set up how do I invoke Picolisp? Thanks. > > -- > From: ramangopa...@gmail.com > To: picolisp@software-lab.de > Subject: Re: Mizar32 - What order do functions have to appear? > Date: Wed, 2 Dec 2015 03:30:10 +0100 > > > Dear JB, greetings! > > > So I started creating a little program to act as a digital counter > > with the blue led flashing at each change of logic state, it came to > > Perfect way to begin! > > > my attention very quickly that there is some hidden format that the > > code has to be in and some rules that I can’t find written. It seems > > Actually, nothing is hidden or implicit at all. :) So, let's fix your > problem for you. > > > to me that you can’t set a pin direction unless you are going to use > > it in the immediate program and I personally can’t seem to get > > smaller functions of “sethigh” and “setlow” to ever work. > > You can set the direction of a pin in any context in PicoLisp. The > code you have in autorun.l must set its direction. Here's how it > works. Think of it as the default state of the pin. Some pins can be > high by default; some can be low. This is MCU specific - This > particular device works this way. The same code on an LM3S8962 Texas > Instruments Cortex clone behaves the other way. > > # Will set the dir of PB_29 and turn the blue LED "on" > # automatically. > (pio-pin-setdir *pio-output* 'PB_29) > > # Will turn the blue LED "off". > (pio-pin-sethigh 'PB_29) > > So, your function should be: > > (de high (pin) >(pio-pin-setlow pin) ) > > > Is there like a comprehensive list of the way I need to be writing > > these programs? > > It's regular PicoLisp. No different. Just that it runs on the MCU. :) > > > I experiment a lot and I do not have the vga board so I have no > > console on screen, I’m kinda running blind and need all the heads up > > I can. > > Oh! This is quite easy. Can you please use a serial terminal emulator? > I use minicom. It's a nice tool. In case you don't have it, please get > it (or another of your choice) and configure it for 115200 baud, 8N1 > and no hardware flow control. So, assuming an Ubuntu GNU/Linux and > minicom: > > $ sudo apt-get install minicom > $ minicom -D /dev/ttyACM0 > > The above should get you the Hempl shell. Invoke PicoLisp directly > from the shell. You can then type away interactively - like you would > with regular PicoLisp. You can also edit PicoLisp files on your SD > card using iv, the vi clone. > > Hempl# iv /mmc/autorun.l > Hempl# picolisp /mmc/autorun.l > > Please let me know if this helps you. Good luck! > > R > > On 1 December 2015 at 23:08, J B wrote: > > So I started creating a little program to act as a digital counter with > the blue led flashing at each change of logic state, it came to my > attention very quickly that there is some hidden format that the code has > to be in and some rules that I can’t find written. It seems to me that you > can’t set a pin direction unless you are going to use it in the immediate > program and I personally can’t seem to get smaller functions of “sethigh” > and “setlow” to ever work. Is there like a comprehensive list of the way I > need to be writing these programs? I experiment a lot and I do not have the > vga board so I have no console on screen, I’m kinda running blind and need > all the heads up I can. Thanks. > > > -- John Duncan
RE: Mizar32 - What order do functions have to appear?
Thanks for the quick reply. I'm not using Linux, my Mizar lives at college where I am building my project for college. The college PC's are using Win 7 and I don't think they have any terminal software installed on them, although HyperTerm is installed by default, it's probably blocked as I can't find it. I may be able to get hyperterm unblocked or bring in a portable terminal emulator on a usb stick, but I'm not sure. Do I need any special cables for the emulator or is it just the USB power cable? Also, once that's set up how do I invoke Picolisp? Thanks. From: ramangopa...@gmail.com To: picolisp@software-lab.de Subject: Re: Mizar32 - What order do functions have to appear? Date: Wed, 2 Dec 2015 03:30:10 +0100 Dear JB, greetings! > So I started creating a little program to act as a digital counter > with the blue led flashing at each change of logic state, it came to Perfect way to begin! > my attention very quickly that there is some hidden format that the > code has to be in and some rules that I can’t find written. It seems Actually, nothing is hidden or implicit at all. :) So, let's fix your problem for you. > to me that you can’t set a pin direction unless you are going to use > it in the immediate program and I personally can’t seem to get > smaller functions of “sethigh” and “setlow” to ever work. You can set the direction of a pin in any context in PicoLisp. The code you have in autorun.l must set its direction. Here's how it works. Think of it as the default state of the pin. Some pins can be high by default; some can be low. This is MCU specific - This particular device works this way. The same code on an LM3S8962 Texas Instruments Cortex clone behaves the other way. # Will set the dir of PB_29 and turn the blue LED "on" # automatically. (pio-pin-setdir *pio-output* 'PB_29) # Will turn the blue LED "off". (pio-pin-sethigh 'PB_29) So, your function should be: (de high (pin) (pio-pin-setlow pin) ) > Is there like a comprehensive list of the way I need to be writing > these programs? It's regular PicoLisp. No different. Just that it runs on the MCU. :) > I experiment a lot and I do not have the vga board so I have no > console on screen, I’m kinda running blind and need all the heads up > I can. Oh! This is quite easy. Can you please use a serial terminal emulator? I use minicom. It's a nice tool. In case you don't have it, please get it (or another of your choice) and configure it for 115200 baud, 8N1 and no hardware flow control. So, assuming an Ubuntu GNU/Linux and minicom: $ sudo apt-get install minicom $ minicom -D /dev/ttyACM0 The above should get you the Hempl shell. Invoke PicoLisp directly from the shell. You can then type away interactively - like you would with regular PicoLisp. You can also edit PicoLisp files on your SD card using iv, the vi clone. Hempl# iv /mmc/autorun.l Hempl# picolisp /mmc/autorun.l Please let me know if this helps you. Good luck! R On 1 December 2015 at 23:08, J B wrote: So I started creating a little program to act as a digital counter with the blue led flashing at each change of logic state, it came to my attention very quickly that there is some hidden format that the code has to be in and some rules that I can’t find written. It seems to me that you can’t set a pin direction unless you are going to use it in the immediate program and I personally can’t seem to get smaller functions of “sethigh” and “setlow” to ever work. Is there like a comprehensive list of the way I need to be writing these programs? I experiment a lot and I do not have the vga board so I have no console on screen, I’m kinda running blind and need all the heads up I can. Thanks.
Re: Mizar32 - What order do functions have to appear?
Dear JB, greetings! > So I started creating a little program to act as a digital counter > with the blue led flashing at each change of logic state, it came to Perfect way to begin! > my attention very quickly that there is some hidden format that the > code has to be in and some rules that I can’t find written. It seems Actually, nothing is hidden or implicit at all. :) So, let's fix your problem for you. > to me that you can’t set a pin direction unless you are going to use > it in the immediate program and I personally can’t seem to get > smaller functions of “sethigh” and “setlow” to ever work. You can set the direction of a pin in any context in PicoLisp. The code you have in autorun.l must set its direction. Here's how it works. Think of it as the default state of the pin. Some pins can be high by default; some can be low. This is MCU specific - This particular device works this way. The same code on an LM3S8962 Texas Instruments Cortex clone behaves the other way. # Will set the dir of PB_29 and turn the blue LED "on" # automatically. (pio-pin-setdir *pio-output* 'PB_29) # Will turn the blue LED "off". (pio-pin-sethigh 'PB_29) So, your function should be: (de high (pin) (pio-pin-setlow pin) ) > Is there like a comprehensive list of the way I need to be writing > these programs? It's regular PicoLisp. No different. Just that it runs on the MCU. :) > I experiment a lot and I do not have the vga board so I have no > console on screen, I’m kinda running blind and need all the heads up > I can. Oh! This is quite easy. Can you please use a serial terminal emulator? I use minicom. It's a nice tool. In case you don't have it, please get it (or another of your choice) and configure it for 115200 baud, 8N1 and no hardware flow control. So, assuming an Ubuntu GNU/Linux and minicom: $ sudo apt-get install minicom $ minicom -D /dev/ttyACM0 The above should get you the Hempl shell. Invoke PicoLisp directly from the shell. You can then type away interactively - like you would with regular PicoLisp. You can also edit PicoLisp files on your SD card using iv, the vi clone. Hempl# iv /mmc/autorun.l Hempl# picolisp /mmc/autorun.l Please let me know if this helps you. Good luck! R On 1 December 2015 at 23:08, J B wrote: > So I started creating a little program to act as a digital counter with > the blue led flashing at each change of logic state, it came to my > attention very quickly that there is some hidden format that the code has > to be in and some rules that I can’t find written. It seems to me that you > can’t set a pin direction unless you are going to use it in the immediate > program and I personally can’t seem to get smaller functions of “sethigh” > and “setlow” to ever work. Is there like a comprehensive list of the way I > need to be writing these programs? I experiment a lot and I do not have the > vga board so I have no console on screen, I’m kinda running blind and need > all the heads up I can. Thanks. >