llvm-mos-sdk
turtle.h
Go to the documentation of this file.
1 // Copyright 2024 LLVM-MOS Project
2 // Licensed under the Apache License, Version 2.0 with LLVM Exceptions.
3 // See https://github.com/llvm-mos/llvm-mos-sdk/blob/main/LICENSE for license
4 // information.
5 
6 #include <stdint.h>
7 
8 #ifndef _NEO_TURTLE_H
9 #define _NEO_TURTLE_H
10 
11 #include <neo6502.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
22 void neo_turtle_init(uint8_t idx);
23 
29 void neo_turtle_turn(int16_t deg);
30 
38 void neo_turtle_move(int16_t len, uint8_t color, uint8_t pen);
39 
43 void neo_turtle_hide(void);
44 
48 void neo_turtle_home(void);
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #endif
neo_turtle_home
void neo_turtle_home(void)
Move the turtle to the home position - centered, facing upward.
neo_turtle_turn
void neo_turtle_turn(int16_t deg)
Turn the turtle right. Show if hidden.
neo_turtle_hide
void neo_turtle_hide(void)
Hide the turtle.
std::uint8_t
::uint8_t uint8_t
Definition: cstdint:21
neo_turtle_move
void neo_turtle_move(int16_t len, uint8_t color, uint8_t pen)
Move the turtle forward. Show if hidden.
neo_turtle_init
void neo_turtle_init(uint8_t idx)
Initialise the turtle graphics system.
neo6502.h
std::int16_t
::int16_t int16_t
Definition: cstdint:8
len
char len
Definition: nesdoug.h:26