A PC is not a microcontroller.
Type: Posts; User: ☼Aulos
A PC is not a microcontroller.
Hello,
I hope you are having a good day.
I need to know what is the best microcontroller on the market which stores and sends pictures (not video) over VGA.
It would need the typical I/O of...
Sorry, actually sound files are stored onto the microcontroller and then, once the user says something, like "access file one", the microcontroller will play that audio. Instead of just linearly...
So it looks like my program never actually goes to the function pointed to by DeltaIndex in the array "FunArray1":
if((the user said "watermelon"))
{
while(DeltaIndex<=8)
{
All,
Sorry I wasn't more clear. When I was asking questions, I was messing around with the code at the same time.
Well I tried the look up table method of function pointers and can't seem to...
I apologize. My last post was put out before I saw yours starting with "You appear to be".
Are you sure that
myFunctionTable FunctionTable[]={{"Hello", &myHello}, {"GoodBye", &myGoodBye}};
is correct syntax?
your code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void myHello(void);
void myGoodBye(void);
Does it matter whether the functions that the array is pointing to return or take values? I wouldn't think so, so I made the the functions void-void.
What does the input to the functions have to...
So when I do this:
*FunArray1[funIndex];
I am passing a number(funIndex) to (*FunArray1[8]) which means that its input must be int.
so:
All I really want to do is go to the function and do something then return nothing.
[SIZE=1][SIZE=1]
So I looked at the "Array of Function pointers" stuff and it looks really helpful.
So I made my array:
int (*FunArray1[8]);
FunArray1[0]=playPT1;
FunArray1[1]=playPT2;
Hello,
I hope you are having a good day and thank you for your time.
Is it possible to make an array of commands such that if I want to go to a function with a certain input, I can use the...