Little Robot Friends
Arduino Library Reference
version 1.1
MyLittleRobotFriend.cpp
1
//
2
// MyLittleRobotFriend.cpp
3
// LittleRobotFriends
4
//
5
// Created by Mark Argo on 2014-06-11.
6
// Copyright (c) 2014 Aesthetec Studio Inc. All rights reserved.
7
//
8
9
/*
10
THIS SOFTWARE IS PROVIDED “AS IS”, WITHOUT ANY REPRESENTATIONS, CONDITIONS,
11
AND/OR WARRANTIES OF ANY KIND. WITHOUT LIMITATION, AESTHETEC STUDIO AND ITS
12
AFFILIATES, LICENSORS, SUPPLIERS, CONTRIBUTORS, SUBCONTRACTORS, DISTRIBUTORS
13
AND ALL CONTRIBUTORS DISCLAIM ANY EXPRESS OR IMPLIED REPRESENTATIONS,
14
CONDITIONS, OR WARRANTIES OF MERCHANTABILITY, MERCHANTABLE QUALITY, SATISFACTORY
15
QUALITY, NON-INFRINGEMENT, TITLE, DURABILITY, OR FITNESS FOR A PARTICULAR
16
PURPOSE, WHETHER ARISING BY STATUTE, COURSE OF DEALING, USAGE OF TRADE, OR
17
OTHERWISE. EXCEPT AS OTHERWISE PROVIDED IN THIS AGREEMENT, YOU SHALL BEAR
18
THE ENTIRE RISK FOR ANY USE OR ANY OTHER EXPLOITATION MADE BY YOU OF ANY
19
RIGHTS IN THE COVERED SOFTWARE.
20
21
Additional copyright information found at http://littlerobotfriends.com/legal/
22
*/
23
24
//
25
26
/*
27
28
This sketch contains the minimum code required to run the LRF library. Just upload this
29
sketch to your robot to restore it to the factory settings (your personality won't
30
be changed).
31
32
*/
33
34
#include "
LRF.h
"
35
36
void
setup(
void
)
// Arduino setup routine that gets called ONCE when the robot turns on
37
{
38
lrf.
setup
();
// lrf library should be set up before anything else
39
}
40
41
void
loop(
void
)
// Arduino loop routine that gets called OVER AND OVER while the robot runs
42
{
43
lrf.
loop
();
// run the lrf library
44
}
LittleRobotFriend::loop
void loop(void)
run the LRF library loop
Definition:
LRF.cpp:175
LRF.h
This is the core API class for access LRF library functions.
LittleRobotFriend::setup
void setup(void)
setup the LRF library
Definition:
LRF.cpp:108
Arduino
MyLittleRobotFriend.cpp
a project by