|
Introduction to Microcontroller Programming * Course Index * Introduction * About the Author * About this Course * Feedback * Course Navigation * Quick Course Navigation * How to use this Course * Acronyms Used and Course Conventions About PICmicro Chips * What is a PICmicro? * Microcontrollers * Digital versus Analogue * Inputs and Outputs * Memory * Programming * 16F1937 Architecture Clocking Your PICmicro Devices * Introduction * The Clock Circuit * Clock Settings * Clock Confusion E-Blocks * Introduction to E-blocks * Using E-blocks * E-blocks Boards Flowcode Step By Step * Introduction to Flowcode * Basic Flowcode Functions * Digital Outputs * Digital Inputs * Basic Loops * The LCD Display * Binary Numbers * Decisions * Goto (Connection Point) * 7-Segment Displays * Software Macro * Strings and Memory * A Simple Hi-Fi PICmicro Projects * Introduction to PICmicro Projects * Construction Methods * Choosing a Power Source * Adding Inputs * Input Conditioning * Adding Outputs * Adding Drivers Labs * Introduction and Lesson Plan * 1. Output * 2. Delay * 3. Connection Point * 4. Calculations * 5. Loop * 6. Input * 7. Decision * 8. LCD * 9. Keypad * 10. Analogue + EEPROM * 11. Software Macro * 12. External Interrupt * 13. Timer Interrupt |
(:Summary:Contains the 'action' links (like Browse, Edit, History, etc.), placed at the top of the page, see site page actions:) (:comment This page can be somewhat complex to figure out the first time you see it. Its contents are documented at PmWiki.SitePageActions if you need help. :) * Print (:comment (:if group Site,SiteAdmin,Cookbook,Profiles,PmWiki*:) (:comment delete if and ifend to enable backlinks:) * %item rel=nofollow class=backlinks accesskey='$[ak_backlinks]'% [[{*$Name}?action=search&q=link={*$FullName} | $[Backlinks] ]] (:ifend:) :) * Login PmWiki /
PageFileFormat(:Summary: PmWiki group header. Includes styles and trail.:) (:comment please leave the multiple style definitions concatenated as a single line. Linebreaks do appear in the output when the wiki is configured with linebreaks enabled -- thanks!:) (:comment included in PmWiki localisation headers and footers :) < Functions | Documentation Index | Audiences > You may have many documents that you would like to use a local program to format in a format PmWiki can display. You could open each document and copy/paste the content to new pmwiki pages or you could format the document in advance and upload it using an FTP client. FormatOnly two lines are necessary in a PmWiki page file: -> version=pmwiki-2.1.0 urlencoded=1 text=Markup text "version=" tells PmWiki that the values are urlencoded. The actual value doesn't matter, as long as "urlencoded=1" appears somewhere in the line. "text=" ''needs'' to have the markup text with newlines converted to "%0a" and percent signs converted to "%25". -> In addition, ''PmWiki writes'' pages with '<' encoded as "%3c" (to help with security), but it doesn't require that <'s be encoded that way in order to be able to read the page. More conversions are possible to be added in the future. In order to let searches and the In order to have the -> targets=GroupName1.Pagename1,GroupName2.Pagename2,... "targets=" is a comma delimited list of all links from the current page (no space following the comma). Page file attributesKeys you could see in a raw PmWiki file: :'''version''': Version of PmWiki used to create the file
:'''agent''': Author's browser when saving the page
:'''author''': Last author to save page
:'''charset''': The character encoding of the page text
:'''csum''': Change summary
:'''ctime''': Page creation time
:'''description''':Page description. Used to fill Below these you will see information used to keep track of the page's revision history. Creating a Page for DistributionA simple way to create a wikipage file to use for distribution (for example with a recipe or a skin) is to create the page with PmWiki and then use a text editor to delete all lines but ''version'', ''text'', and ''ctime''. Example: -> version=pmwiki-2.1.0 ordered=1 urlencoded=1 text=This is a line.%0aThis is another. ctime=1142030000 Keeping track of page historyInside of a page file, PmWiki stores the latest version of the markup text, and uses this to render the page. The page history is kept as a sequence of differences between the latest version of the page and each previous version. PmWiki normally puts the page history at the end of each page file in reverse chronological sequence, and sets the "ordered=1" items in the header. If an operation needs only the most recent version of a page, then PmWiki will stop reading and processing a page file at the point where the history begins, potentially saving a lot of time and memory. If the "ordered=1" flag isn't present, PmWiki makes no assumptions about the ordering of items in the pagefile and processes the entire file. Load pages from text filesUnix utility to extract wiki textThis one-line sed command extracts and prints the text of a PmWiki 2.x file (could be aliased, eg. ''pmcat''): sed -n 's/^text=//; s/%0a/\n/gp; s/%3c/</gp; s/%25/%/gp' '''GroupName.PageName''' The following unix script (tested on MacOSX) will extract and decode the current text from a wiki file: ->
#!/bin/tcsh
# wtext - extract wiki text
#
# wtext wikifile > output
<:vspace>
set fn = "$1"
if ("$fn" == "") then
echo "need input file parameter"
exit 999
endif
if (! -f $fn) then
echo "$fn does not exist"
exit 999
endif
rm sedin.$$ >& /dev/null
set ch = `grep ^newline= $fn | cut -d= -f2`
if ("$ch" == "") set ch = "%0a"
cat <<eof > sedin.$$
s/^text=//
s/$ch/\
/g
s/%3c/</g
s/%25/%/g
eof
grep "^text=" "$1" | sed -f sedin.$$
rm sedin.$$ >& /dev/null
See also* Cookbook:AdminByShell A collection of ways to assist sysadmin of pmwiki using shell tools * Cookbook:PageTopStore A PageStore alternative which doesn't mangle page contents when viewed outside PmWiki Categories: PmWiki Developer(:nl:)(:Summary:Trail and talk page links:) (:comment included in PmWiki localisation headers and footers :) < Functions | Documentation Index | Audiences > <<? >>bgcolor=#ffe border-top="1px solid black" font-size=.8em<< This page may have a more recent version on pmwiki.org: PmWiki:PageFileFormat, and a talk page: PmWiki:PageFileFormat-Talk. >><< |
(:Summary: Website page footer:)
Print - (:comment (:if group Site,SiteAdmin,Cookbook,Profiles,PmWiki*:) (:comment delete if and ifend to enable backlinks:) %item rel=nofollow class=backlinks accesskey='$[ak_backlinks]'% [[{*$Name}?action=search&q=link={*$FullName} | $[Backlinks] ]] (:ifend:) :) Search - Login
Page last modified on September 30, 2019, at 09:16 AM