Libraries provide extra functionality for use in sketches, e.g. Working with hardware or manipulating data. To use a library in a sketch, select it from Sketch Import Library. A number of libraries come installed with the IDE, but you can also download or create your own. See these instructions for details on installing libraries.
Download required libraries from here
It is a tradition to use Turbo C for graphic in C/CPP. But it's also a pain in the neck. Here we are using Code::Blocks IDE, which will ease out our work.
Steps to run graphic code in CodeBlocks
1. Install Code::BlocksC Code Library Free Download Full
Make sure you have installed Code::Blocks IDE on your machine. If you don't have this IDE or have any issue with compiler download and install it from here. http://sourceforge.net/projects/codeblocks/files/Binaries/16.01/Windows/codeblocks-16.01mingw-setup.exe
2. Download the required header files
We need few files to be included in the lib folder of Code::Blocks.Download the files from here https://github.com/SagarGaniga/Graphics-Library
3. Include graphics.h and winbgim.h
Copy and Paste the graphics.h and winbgim.h files into include folder of Code::Blocks directory.
Path: C:Program Files (x86)CodeBlocksMinGWinclude
4. Include libbgi.a
Copy and paste libbgi.a file in the lib folder of Code:Blocks
Path: C:Program Files (x86)CodeBlocksMinGWlib
AcronymDefinitionMESCModular Equipment Subcommittee for CommunicationsMESCMinistry of Education, Sports and Culture (Samoa)MESCMichigan Employment Security CommissionMESCMiddle East Studies Center (various universities)MESCMiddle East Specialized Cables (Saudi Arabia; est. Mesc code free download.
5. Add Link Libraries in Linker Setting
To test the setting copy paste any computer graphics code from
This library allows an Arduino board to control RC (hobby) servo motors.
For more information about this library please visit us athttp://www.arduino.cc/en/Reference/Servo
License
Copyright (c) 2013 Arduino LLC. All right reserved.Copyright (c) 2009 Michael Margolis. All right reserved.
This library is free software; you can redistribute it and/ormodify it under the terms of the GNU Lesser General PublicLicense as published by the Free Software Foundation; eitherversion 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNULesser General Public License for more details.
Download Free Library Books Online
You should have received a copy of the GNU Lesser General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |