This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SPI.h> | |
#include <GD.h> | |
void setup() { | |
// give time for the gameduino splash screen to be displayed | |
delay(2500); | |
GD.begin(); | |
// load character set |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "string" | |
--------------------------------------------------------- | |
-- a font library for the dingoo -- | |
-- allows for multiple fonts -- | |
--------------------------------------------------------- | |
-- creates a table of images from a font | |
-- ImageData source, String char_list, Number char_width, Number seperator_width |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create the client | |
RestClient client = new RestClient(); | |
client.BaseUrl = url; | |
// create the request | |
RestRequest request = new RestRequest(Method.POST); | |
request.Resource = service_method; | |
request.AddParameter("text/xml", body, ParameterType.RequestBody); | |
// send the request |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;************************************************* | |
;* Create and move a simple sprite x,y * | |
;************************************************* | |
processor 6502 | |
org $1000 | |
;helpful labels | |
CLEAR = $E544 | |
GETIN = $FFE4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
game = {} | |
game.button= "" | |
game.key = "" | |
function love.load() | |
success = love.graphics.setMode(320, 240, false, 0) | |
end | |
function love.update(dt) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;********************************************* | |
;* Arrow Cursor, W,S,A,D * | |
;********************************************* | |
processor 6502 | |
org $1000 | |
;setup helpful labels | |
CLEAR = $E544 | |
CHROUT = $FFD2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;********************************************************* | |
;* HELLOWORLD using .BYTE, CHROUT and loops * | |
;********************************************************* | |
processor 6502 | |
org $C000 | |
;set up some helpful labels | |
CLEAR = $E544 | |
CHROUT = $FFD2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;put Hello World using screen address | |
;rather than jsr $e716 | |
processor 6502 | |
org $1000 | |
jsr $E544 ;clear the screen | |
;set the screen color memory | |
lda #0 ;black in A |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
processor 6502 | |
org $1000 | |
jsr $e544 ;clear the screen | |
lda #72 ;load ascii value for H into A | |
jsr $e716 ;display H from A to screen | |
lda #69 ;load E into A | |
jsr $e716 ;display E |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
// pin setups | |
int latchPin = 8; | |
int clockPin = 12; | |
int dataPin = 11; | |
int tempPin = 7; | |
char recMsg = '0'; |