Simple Library Example

Here you can share completed projects or parts of projects that may be useful to others. You may post files relevant to ZBasic - source code, schematics, etc.
Post Reply
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Simple Library Example

Post by dkinzer »

The attached .zip file contains two projects: one to build a simple library and another that uses a function in the library.

The library provides one subroutine that has the signature below. The purpose of the subroutine is to cause an LED whose cathode is connected to the specified pin to momentarily illuminate. The second project then calls this library subroutine in a loop to implement continuous blinking.

Code: Select all

Sub blink(ByVal pin as Byte)
See the readme.txt file in the archive for more information.
Attachments
libExample.zip
Library Example Code
(1.4 KiB) Downloaded 635 times
- Don Kinzer
Post Reply