Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Scripting Languages / Re: SB Pi
« Last post by AIR on March 18, 2019, 07:34:39 PM »
I don't think so, I think the underlying architectures are different...only one way to find out.

Also, some of the required support libraries might not be present.
22
Scripting Languages / Re: SB Pi
« Last post by John on March 18, 2019, 06:34:40 PM »
AIR,

Do you think your Raspberry Pi AppImage of Script BASIC would run on my Samsung S8+ in a Connect Bot terminal session? I already have Busybox Linux utilities installed.

I have an Android SB I compiled native on a rooted Samsung Galaxy Tab 10.5. Getting libcurl to compile was a challenge.
23
Scripting Languages / Re: SB Pi
« Last post by John on March 18, 2019, 06:17:59 PM »
Raspberry Pi Desktop has a cool GPIO emulator with an array of sensors. It's programable using the Python examples included. Sounds like a great way to develop GPIO applications and not need the physical interface or sensor modules.
24
Code Challenges / Re: Generate QR code
« Last post by John on March 17, 2019, 09:12:14 PM »
I like the GO feature of being able to include code from the web.

I'm going to try using SB's pre-processor to acomplishish the same effect.
25
Scripting Languages / Re: SB Pi
« Last post by John on March 17, 2019, 09:08:01 PM »
Thanks AIR!

Quote
For this example Iím going to be using the standard pthreads library, a locally-compiled open-source wiringPi library, and the current C11 standard with our compile

This answers my questions about SBT and using Gordon's WiringPi library.  8)
26
Scripting Languages / Re: SB Pi
« Last post by AIR on March 17, 2019, 08:50:57 PM »
This may help get you started:

The Useful RaspberryPi Cross Compile Guide
27
Code Challenges / Re: Generate QR code
« Last post by AIR on March 17, 2019, 08:29:07 PM »
GO:

Code: Go
  1. package main
  2.  
  3. import (
  4.         "os"
  5.  
  6.         qrcode "github.com/skip2/go-qrcode"
  7. )
  8.  
  9. func main() {
  10.         err := qrcode.WriteFile("https://www.allbasic.info/forum/index.php", qrcode.Medium, 256, "qr.png")
  11.         if err != nil {
  12.                 println("Error generating QR image...")
  13.                 os.Exit(-1)
  14.         }
  15. }
  16.  
28
Scripting Languages / Re: SB Pi
« Last post by John on March 17, 2019, 02:06:02 PM »
I thought I would get a head start and install the Raspberry Pi Desktop in a Virtualbox.

Quote
Debian with Raspberry Pi Desktop is the Foundationís operating system for PC and Mac. You can create a live disc, run it in a virtual machine, or even install it on your computer.

Raspberry Pi Desktop comes pre-installed with plenty of software for education, programming and general use; including Python, Scratch, Sonic Pi, Java, and more.

I wonder li I can cross compile to ARM from this VM?


29
Code Challenges / Re: Generate QR code
« Last post by John on March 17, 2019, 08:47:27 AM »



Code: [Select]
http://api.qrserver.com/v1/create-qr-code/?data=https%3A%2F%2Fwww.allbasic.info%2Fforum%2Findex.php&size=125x125


30
Code Challenges / Generate QR code
« Last post by jalih on March 17, 2019, 02:58:18 AM »
Your challenge is to generate a QR code for All BASIC forum website using your favorite programming language and library.

Below is a simple 8th version using built-in capability.

Code: [Select]
needs utils/qrcode

: fname "qr.png" ;
: qr-str "https://www.allbasic.info/forum/index.php" ;

: app:main
  qr-str img:ECC-LOW img:qr-gen img:qr>img
  fname f:rm drop
  fname img:>file
  bye ;
Pages: 1 2 [3] 4 5 ... 10