WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Micropython + GPIO  (Read 11092 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7179
    • My Community Forum
Re: Micropython + GPIO
« Reply #30 on: September 08, 2015, 01:18:28 AM »
Not yet pushed onto
http://distro.ibiblio.org/tinycorelinux/7.x/armv6/tcz/
?


Main repo is repo.tinycorelinux.net ibiblio is just a mirror synced once a day.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: Micropython + GPIO
« Reply #31 on: September 08, 2015, 06:04:54 PM »
That mirror is the only one I can download tcz's from in Windows.
Thought it might be my browser but with Chrome and Firefox all I can see is a txt list of tcz's.

I can live with once a day update on http://distro.ibiblio.org/tinycorelinux/7.x/armv6/tcz/ but it is broken at the moment :'(

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: Micropython + GPIO
« Reply #32 on: September 08, 2015, 07:56:54 PM »
Working now, Luajit 2.0.4

Also updated from 4.1.4 to 4.1.6 Alpha3, much faster boot and SSH is also faster.
Filezilla is also faster, used to be a wait before anything downloaded.

piCore just keeps getting better.
Thanks Bela.

Rechecked Go got following message

runtime: this CPU has no VFPv3 floating point hardware, so it cannot run
this GOARM=7 binary. Recompile using GOARM=6.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7179
    • My Community Forum
Re: Micropython + GPIO
« Reply #33 on: September 09, 2015, 02:10:16 AM »

Rechecked Go got following message

runtime: this CPU has no VFPv3 floating point hardware, so it cannot run
this GOARM=7 binary. Recompile using GOARM=6.

Go updated for armv6
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: Micropython + GPIO
« Reply #34 on: September 09, 2015, 02:10:59 AM »
Thanks Bela,

Will try it tomorrow

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: Micropython + GPIO
« Reply #35 on: September 09, 2015, 06:48:36 PM »
Interesting.

Go is working, did a Println("hello world")
Generated a nearly 1.6MB run file.
Wonder what gets compiled into that?
Go compiles quick so maybe use go run xxx.go instead of go build xxx.go.

Might leave C and Go for another day.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7179
    • My Community Forum
Re: Micropython + GPIO
« Reply #36 on: September 10, 2015, 12:59:53 AM »
Interesting.

Go is working, did a Println("hello world")
Generated a nearly 1.6MB run file.
Wonder what gets compiled into that?
Go compiles quick so maybe use go run xxx.go instead of go build xxx.go.

Might leave C and Go for another day.

Go creates static linked executable, it is why size is big. Built executable doesn't need Go environment run.

If you are looking for small size and high performance, use C.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10701
Re: Micropython + GPIO
« Reply #37 on: September 10, 2015, 01:57:31 AM »
The tiny C compiler (tcc) looks like it has some arm support.
The only barriers that can stop you are the ones you create yourself.

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: Micropython + GPIO
« Reply #38 on: September 10, 2015, 11:19:29 PM »
Just tried compiling Synergy on Raspbian.
So many dependencies and internet required to apt-get install them.

Going to leave c compiling for another day/year and stick with scripting.

TCC would be nice though.
I liked QuickC on Windows.
Current Visualxxx bloatware does not impress me.
Hmm jump in time machine , go back to Turbopascal? Latest version is FPC + Lazarus, 700MB? ok not small then.
While I'm back in the past -Forth?
Yep alive and kicking on the Pi, even bare metal Forth??? 8k install!!!



Offline vinikon

  • Newbie
  • *
  • Posts: 39
Re: Micropython + GPIO(where is the prob)
« Reply #39 on: February 21, 2018, 06:23:41 AM »
Hi,
I just tried "shell" version to write directly to pins and got this:
"can't create /sys/class/gpio22/value: nonexistent directory"

I also get this " ls /sys/class/gpio22 /sys/class/gpio22: No such file or directory"

I'm using Raspi ver.1 on Linux box 4.9.22-piCore #1 Sat Apr 15 15:30:03 UTC 2017 armv6l GNU/Linux

Please tell me what's wrong with.

Thanks
An inspired user of TinyCore...

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7179
    • My Community Forum
Re: Micropython + GPIO(where is the prob)
« Reply #40 on: February 21, 2018, 09:00:21 PM »
Hi,
I just tried "shell" version to write directly to pins and got this:
"can't create /sys/class/gpio22/value: nonexistent directory"

I also get this " ls /sys/class/gpio22 /sys/class/gpio22: No such file or directory"

I'm using Raspi ver.1 on Linux box 4.9.22-piCore #1 Sat Apr 15 15:30:03 UTC 2017 armv6l GNU/Linux

Please tell me what's wrong with.

Thanks

If the script you are running is unknown no way to give answer.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."