system
October 29, 2011, 5:11am
#1
I need help with interfacing my 2650 with more than one external project.
I've connected up the Memsic 2125.
I've connected up a ball mouse.
I've connected up almost all of the examples and more.
Here is my issue.
How do I make a ball mouse do something like move a SERVO or activate an LED?
How do I make a Memsic 2125 move a SERVO or turn on an LED?
How do I make a PlayStation DualShock2 move a SERVO or turn on an LED?
Thank you
system
October 31, 2011, 8:49pm
#2
r u familiar with the procedural programming paradigm?
u can gather data X from an input device
and
compute some new configuration data Y using X
and
then u reconfigure an output device to Y
system
October 31, 2011, 9:08pm
#3
hm
i meant this:
Procedural programming is a programming paradigm, derived from imperative programming, based on the concept of the procedure call. Procedures (a type of routine or subroutine) simply contain a series of computational steps to be carried out. Any given procedure might be called at any point during a program's execution, including by other procedures or itself. The first major procedural programming languages appeared circa 1957–1964, including Fortran, ALGOL, COBOL, PL/I and BASIC. Pascal Compu...
did u try a simple program:
maybe one that reads a character from the Serial object
and then echoes it to the Serial object?
void setup() {
Serial.begin(115200);
}
void loop() {
int c = Serial.read();
// here u can add some cool modification...
// e. g.:
// c += 9 - c%9;
Serial.println(c);
}
system
November 1, 2011, 5:51am
#4
Could you please help me some more? Could you give me specific examples that I can save and use to modify? I would really appreciate it.
Thank you,
Matt
system
November 1, 2011, 8:25am
#5
here
u will find some examples especially for beginners...
have fun...