Convert PicoC script to run on TCC?

Started by gerk.raisen, May 27, 2013, 02:23:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gerk.raisen

Now that many people (me too) are trying raw_rec module (so with PicoC disabled and TCC enabled),
I was figuring out how to convert simple scripts from PicoC to TCC.

I read that with TCC scripting is a little more complicated.

For example (taken from brack.c)
What i need to run to make it work?



// Custom bracket sequence
// ISO 3200 1/10 f1.8
// ISO 100 1/10 f8
// ISO 100 1" f8
// ISO 100 10" f8

console_hide();

set_aperture(1.8);
set_iso(3200);
set_shutter(1./10);
takepic();

set_aperture(8);
set_iso(100);
takepic();

set_shutter(1);
takepic();

set_shutter(10);
takepic();

g3gg0

wrap it with

int main()
{
...
}

thats the most important stuff.
then we will see which functions are missing.
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!

federico.albertini

From where do you run a script, within ML?

cheers, F.