Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Dos libraries
2014 年 06 月 04 日
11:55:21
Dinosaur
Member
Forum Posts: 27
Member Since:
2014 年 01 月 06 日
Offline

Hi All

1. What is the name of the library that has functions like PinMode and DigitalRead , DigitalWrite etc. in it.

2. Is this a standard C++ Library ?

Regards
2014 年 06 月 05 日
12:42:29
Android_Lin
Moderator
Forum Posts: 211
Member Since:
2014 年 04 月 01 日
Offline

Hi,
In 86Duino, standard library exists as source code in 86Duino_Coding_103\hardware\86duino\x86\cores\arduino directory. In wdigital.cpp, you can find digitalWrite(), pinMode() function. Those .cpp files in above directory are not compiled as .a file, so no .a library name. 86Duino IDE compile all source code by DJGPP and then build a DOS .exe file to upload automatically after press "upload" button. If you want to call them in your code, copy necessary .cpp files(wdigital.cpp, Arduino.h...) and compile together.

Regards

2014 年 06 月 09 日
05:27:19
Dinosaur
Member
Forum Posts: 27
Member Since:
2014 年 01 月 06 日
Offline

Hi All

Android_Lin I appreciate your responses.
After some struggling and posting and then deleting the posts, I can confirm that I have now completed
the Dos library and linking it to FreeBasic allows me to access the functions.

The only confusing part is that a lot of the Functions listed in the Reference are not core callable routines.
Setup() for example had me stumped as I couldn't find it anywhere.

One suggestion with the reference is to include on each page, the source file detail so that it is easily found.

Otherwise all is good now.
Many thanks for your help.
When I have completed the FreeBasic .Bi file and tested it all I will list it here for others that may use FreeBasic.

Regards
2014 年 07 月 30 日
05:59:40
roboard
Admin
Forum Posts: 135
Member Since:
2013 年 10 月 05 日
Offline

Hi,
setup() and loop() are main functions that must be defined by the user and only required when writing an Arduino programs: http://arduino.cc/en/Tutorial/Sketch

If writing your own main() function, you don't need to define setup() and loop(). And you can just do #include "Arduino.h" to use the Arduino I/O API; for further details, you may refer to the main() function of the Arduino program to see how setup() and loop() work: https://github.com/roboard/86Duino/blob/master/hardware/86duino/x86/cores/arduino/main.cpp
:)

2014 年 07 月 31 日
07:19:28
Ray
New Member
Forum Posts: 3
Member Since:
2014 年 07 月 17 日
Offline

Android_Lin said

Hi,
86Duino IDE compile all source code by DJGPP and then build a DOS .exe file to upload automatically after press "upload" button. If you want to call them in your code, copy necessary .cpp files(wdigital.cpp, Arduino.h...) and compile together.

Regards

So using 86duino to develop Arduino program is actually writing DOS program,right? And 86duino has an DOS in BIOS?

2014 年 08 月 05 日
11:00:41
Android_Lin
Moderator
Forum Posts: 211
Member Since:
2014 年 04 月 01 日
Offline

Ray said

Android_Lin said

Hi,
86Duino IDE compile all source code by DJGPP and then build a DOS .exe file to upload automatically after press "upload" button. If you want to call them in your code, copy necessary .cpp files(wdigital.cpp, Arduino.h...) and compile together.

Regards

So using 86duino to develop Arduino program is actually writing DOS program,right? And 86duino has an DOS in BIOS?

Yes, there is a DOS system called "FreeDOS" in the internal flash on 86Duino. :)

2014 年 08 月 08 日
06:50:13
bcarroll
Moderator
Forum Posts: 12
Member Since:
2014 年 08 月 04 日
Offline

When using the 86duino IDE, what is the name of the executable that gets written to the flash/SD card? is that _86duino.exe?

2014 年 08 月 08 日
10:33:59
Android_Lin
Moderator
Forum Posts: 211
Member Since:
2014 年 04 月 01 日
Offline

Hi, bcarroll:
Yes, no matter in flash/SD, there is a 86Duino bootloader named "_v86boot.exe" that it can receive executable file from 86Duino IDE.
This executable file is named _86duino.exe in flash/SD. And it is updated and executed automatically by 86Duino bootloader when receiving process is completed.

Android_Lin

Forum Timezone: Asia/Taipei

Most Users Ever Online: 66

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Dinosaur: 27

leutenecker: 13

mrZagg: 10

lukeross: 8

tomka: 8

smeezekitty: 8

hippy: 8

Ekkehard: 8

UIdahoCIT: 8

blaxxun: 7

Member Stats:

Guest Posters: 0

Members: 1541

Moderators: 14

Admins: 5

Forum Stats:

Groups: 2

Forums: 10

Topics: 239

Posts: 1082

Newest Members: nhollywoodmarli, bat869cube672, lenggeleranto, iknowesp, dimka, elihu, Woodrowcercraby, Robertnalty, Homerwoppy, RonaldLew

Moderators: Glaux: 70, uaa: 11, guigra: 17, asian55: 22, Android_Lin: 211, bcarroll: 12, cucubutter: 84, recycled-air: 12, stevemork: 16, zerozaber: 52, pongraczi: 20, George Andrews III: 56, poto: 11, garpastym: 20

Administrators: eveshih: 1, anthony: 31, viky6: 0, roboard: 135, hcl: 0