Reference

Reference of AppGosu language

Library

Arduino Library (ver. 2.0)
     https://github.com/AppGosu/Arduino-android-Library.git

Atmega128 Library
     gcc, AVR studio
     coming soon...


Color                                                 Graphic

background(100, 100, 100)                textSize(70) 
fill(100, 100, 100)                                     text("abc", 100, 200)  
stroke(100, 100, 100)                             line(10, 20, 30, 40)
noFill()                                             rect(10, 20, 30, 40)   
noStroke()                                       triangle(10, 20, 30, 40, 50, 60)
                                                       ellipse(10, 20, 30, 40)
                                                       arcDeg(200, 200, 100, 100, 90, 120) 


Multimedia

image("filename.jpg", 10, 50, 400, 300)
imagePath("path\filename.jpg", 10, 20, 400, 300)
loadVideo("filename.mp4", 10, 20, 200, 100)
playVideo()
stopVideo()
sound("music.mp3")
stopSound() 


   
Widget

button                       imageButton                    mousePressRect
eventButton               eventImageButton           eventMousePressRect
clearButton                clearImageButton            clearMousePressRect 


editText                     switchBox                        checkBox
eventEditText             eventSwitchBox               eventCheckBox 
messageEditText        messageSwitchBox           messageCheckBox 
clearEditText              clearSwitchBox                 clearCheckBox


dialogBox                   numberPicker
eventDialogBox          eventNumberPicker
messageDialogBox     messageNumberPicker


textView                    seekBar
textViewSetText         eventSeekBar
textViewSetColor        setDelayEventSeekBar
textViewSetSize         messageSeekBar
textViewSetAlign        clearSeekBar
clearTextView


vibrate                      showToast
vibrateCancel           



Hardware Control

clearAll
setDelayCmd
setScale

btConnected
btDisconnected
btWaiting
btName
btPIN

nop
serialMessage
upLoading



Control
Comming soon...

camera
accelerometer
compass
vibrate


by AppGosu
----------------------------------------------------------- 



 

No comments: