Slick-C Macro Programming Guide

Total Page:16

File Type:pdf, Size:1020Kb

Slick-C Macro Programming Guide ® Slick-C Macro Programming Guide for SlickEdit 2008 Information in this documentation is subject to change without notice and does not represent a commitment on the part of SlickEdit Inc. The software described in this documentation is protected by U.S. and international copyright laws and by other applicable laws, and may be used or copied only in accordance with the terms of the license or nondisclosure agreement that accompanies the software. It is against the law to copy the software on any medium except as specifically allowed in the license or nondisclosure agreement. The licensee may make one copy of the software for backup purposes. No part of this documentation may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or information storage and retrieval systems, for any purpose other than the licensee's personal use, without the express written permission of SlickEdit Inc. Copyright 1988-2008 SlickEdit Inc. Cover design copyright by SlickEdit Inc. Produced in the United States of America. SlickEdit, Visual SlickEdit, Clipboard Inheritance, DIFFzilla, SmartPaste, Context Tagging, Slick-C, and Code Quick | Think Slick are registered trademarks of SlickEdit Inc. All other products or company names are used for identification purposes only and may be trademarks of their respective owners. Protected by U.S. Patent 5,710,926. SE-1301-061108 TABLE OF CONTENTS Table of Contents Table of Contents 3 Welcome 9 Getting Help 9 Documentation 9 Product Support 9 Other Resources 10 Conventions Used in This Guide 10 Contacting SlickEdit Inc. 10 Introduction 13 Working with the Slick-C® Source Code 13 Slick-C® Naming Conventions 13 Four Ways to Use Slick-C® 15 Recording Slick-C® Macros 15 Key Bindable Command 15 Event-Driven Dialog Boxes 16 Creating a Simple Event-Driven Dialog Box 16 Loading Code and Displaying Dialog Boxes 18 Binding Commands to Keys for Dialog Box Display 18 Batch Macros 18 Language Constructs 21 Identifiers 21 Reserved Words and Keywords 21 Comments 23 String Literals 23 Numeric Literals 24 Defining Constants Using #define 25 Defining Constants Using const 25 Defining Constants Using Enumerators 26 Namespaces 26 Types 27 Strings 27 Enumerated Types 27 Arrays 28 Differences from C++ 28 Hash Tables 29 Structs 29 Differences from C++ 30 Unions 30 Anonymous Unions 31 Interfaces 32 Classes 32 Introspection 33 Implicit Conversion to Strings 34 Overloading Comparison and Assignment Operators 34 Slick-C® Macro Programming Guide 3 TABLE OF CONTENTS Overloading Array Index Operators 34 Overloading Assignment/Copy Semantics 35 Overloading Iteration Semantics 35 SlickEdit® Class Libraries 35 Differences from C++ and Java 35 Pointers 36 Pointers to Variables 36 Pointers to Functions 36 Typeless 36 Mathematical Operators 39 Declarations 43 Scoping and Declaring Variables 43 Simple Variables 43 Details About Variable Initializations 43 Type Casting 44 Implicit Local Variables 44 Declaring Local Variables With := 45 Declaring Variables With auto 45 Statements 47 Assignment Operator 47 if Statement 47 Block Statement 48 Loops 48 do 48 for 48 foreach 49 loop 49 while 50 break 50 continue 50 parse Statement 51 switch Statement 52 Functions 55 Defining a Procedure 55 Argument Declarations 56 Default Arguments 56 Defining a Command 57 name_info Attributes 58 OnUpdate Functions 60 Class Methods 60 Function Prototypes 61 Library Functions 62 Built-in Functions 62 Finding Functions 62 Differences Between Commands, Built-ins, and Defs 62 defmain: Writing Slick-C® Batch Files 63 Preprocessing 65 #if 65 4 Slick-C® Macro Programming Guide TABLE OF CONTENTS #pragma 66 #region and #endregion 69 Including Header Files 70 Importing Slick-C Modules 70 Defining Controls 73 Defining Events and Event Tables 75 def Primitive 75 Event-Driven Dialog Boxes 77 Module Initializations 79 Compiling and Loading Macros 81 Debugging Macros 83 Finding Procedures 83 Finding Run-Time Errors 83 Performance Profiling 84 Slick-C® Debugger 85 Error Handling and the rc Variable 87 Dialog Editor 89 Microsoft Visual Basic and Slick-C® 89 Creating Dialog Boxes 91 Dialog Editor Summary 91 Adding and Deleting Controls 91 Setting Properties 92 Aligning Controls 93 Sizing Controls 93 Moving Controls 93 Miscellaneous Assignments When the Form is Active 93 Miscellaneous Menu Items 94 Creating a Form 94 Saving a Form 94 Adding Event Handlers 94 Inherited Code Found Dialog Box 95 Loading and Running the Form 95 Adding a Cancel Button 95 Adding an OK Button and Closing a Dialog Box 96 Displaying Dialog Boxes 97 Modal and Modeless Dialog Boxes 99 Dialog Box Parent Window 100 Remembering a Dialog Box’s Previous Position 100 Clipboard Inheritance® 101 Clipboard Inheritance® Overview 101 Clipboard Inheritance® Example 102 Dialog Box Inheritance Order 103 Objects and Instances 105 Slick-C® Macro Programming Guide 5 TABLE OF CONTENTS Active Object 105 Active Form 105 Instance Expressions 105 Using Functions as Methods 107 Built-in Controls 109 Label Control 109 Spin Control 109 Text Box Control 110 Editor Control 111 Frame Control 111 Command Button Control 111 Radio Button Control 111 Check Box Control 112 List Box Control 112 Combo Box Control 113 Scroll Bar Controls 116 Drive List Control 117 File List Box Control 117 Directory List Box Control 118 Picture Box Control 118 Gauge Control 118 Image Control 119 Adding a Bitmap Command Button or Check Box 119 Adding Dialog Box Retrieval 121 Menus 123 Menu Editor Dialog Box 123 Menu Item Alias Dialog Box 123 Auto Enable Properties Dialog Box 123 Creating and Editing Menu Resources 124 Defining a Menu Resource 124 Predefined Attributes for Auto-Enabling Commands 125 Macro Callbacks for Enabling Commands 125 Placing a Menu Bar on a Form 126 Displaying a Menu as a Pop-Up 126 Common Macro Dialog Boxes 129 String Functions 131 Search Functions 135 Selection Functions 139 Writing Selection Filters 141 Unicode and SBCS or DBCS Macro Programming 143 Shelling Programs from a Slick-C® Macro 145 Interfacing With Other Languages (DLL) 147 Command Line Interface 149 6 Slick-C® Macro Programming Guide TABLE OF CONTENTS Command Line Arguments 149 get_string Procedure 149 Single Argument Prompting with Support for Prompt Style 149 Hooking Startup and Exit 151 Invoking a Macro on Startup 151 Invoking a Macro on Exit 151 State File Caching 153 Windows Data Structure 155 Window Properties 157 View Properties 157 Buffer Properties 157 Tutorials 159 Defining Stack Routines 159 Searching for a String Within a Current Function 161 Creating the Macro 161 Analyzing the Macro 162 Command Line Search Options 163 Reading and Modifying Buffers 164 Functions for Reading and Modifying Buffers 164 Common Functions for Navigating Buffers 164 Escape Backslashes Example 165 Comment Out Debug Print Lines Example 165 Working with Existing Macros 166 Example: Turning on Line Numbers for All Files 166 Example: Counting Lines of Code 167 Events 171 Event Names 171 Keys 171 ASCII Characters 171 Function Keys 171 Extended Keys 171 Miscellaneous Keys 172 Key Name Examples 172 Mouse Events 173 on Events 173 Differences Between Slick-C® and C++ 175 Structures 175 Arrays 175 Hash Tables 175 Assignment Statement 176 Comparison Operator 176 Preprocessing 176 switch Statement 176 Labeled Loops 176 Variable Argument Functions 176 Built-in Graphics Primitives 177 Clipboard Inheritance® 177 Slick-C® Macro Programming Guide 7 TABLE OF CONTENTS End of Statement Semicolon 177 Type Checking 177 Capability not Supported by Slick-C® 177 Index 179 8 Slick-C® Macro Programming Guide WELCOME Welcome Welcome to the Slick-C® Macro Programming Guide. This guide is bundled with SlickEdit products to help you understand and become familiar with Slick-C, the language upon which the SlickEdit® programming editor is based. By learning Slick-C, you can modify the look and feel of the editor, write macros to perform custom operations, add new language support, and essentially extend the editor’s functionality until it is completely customized according to your preferences. Just another way SlickEdit lets you work the way you want. Getting Help Documentation This guide often refers to the SlickEdit® Help system for more information. In the SlickEdit application, the Help system can be accessed by selecting one of the Help submenu items. The contents of the SlickEdit Help system match the combined contents of the SlickEdit User Guide and this Slick-C Macro Programming Guide, both available as PDFs in the SlickEdit docs installation subdirectory. Documentation for all SlickEdit products is available for download from the documentation section of our Web site at www.slickedit.com/docs. TIP The best way to look up a Help keyword is to use the Index. In SlickEdit, from the main menu, select Help > Index. Index keywords are special terms that we have included to help you find specific information. To find all occurrences of a term in the Help, use the Help system’s Search tab (Help > Search). Use quotes around the term to find whole-word matches. Comments and suggestions about our documentation are appreciated. Please send feedback to [email protected]. Product Support For problem reports, please gather the following information and provide it to Product Support: • A description of the problem. • The language in which you are working (C/C++, Java, etc.) • Your SlickEdit program information including version and serial number. To get this information, click the SlickEdit menu item Help > About SlickEdit, then select the Program Information tab. Use the Copy to Clipboard button to copy the information so you can paste it into your problem report. • A code snippet to help us reproduce the problem (if possible). There are several ways to contact our Product Support team: • Use the SlickEdit® menu item Help > Contact Product Support. This will automatically gather your SlickEdit program information. • Send e-mail directly to [email protected].
Recommended publications
  • OS/2 Warp Catalogue
    The OS/2 Software Source: www.xeu.com/blueware/ The OS/2 Warp Catalogue The Hottest Java The Strongest Platform The OS/2 Warp Catalogue In This Catalogue Anti-virus .......................................... 4 Backup .............................................. 4 It’s Java Time CD-ROMs ........................................ 4 Communications ........................ 6 Just when you thought that OS/2 was on its way back, it is receiving a strong Database Management .......... 9 infusion from Java and the internet. Development Tools ................ 10 As Dr. Michael Cowpland, president and CEO of Corel Disk Compression .................. 14 Corporation put it: “This platform is indeed one of the Games & Entertainment ..... 19 OS/2 Warp: best operating system solutions in which to run The Hottest Corel Office for Java (http://officeforjava.corel.com/), Graphics & Multimedia ........ 20 a suite of applications that is setting the standard for The Operating System ......... 21 Java Around! Java-based office suites, and marks another milestone OS/2 Warp is developing in the evolution of Java as a whole.” Productivity ................................. 21 into a strong and speedy Programmer’s Editors .......... 23 foundation for Java. The OS/2 Warp 4.0 Java implementation was recently This perfect fit is nicely updated with a better Virtual Machine (VM) and a REXX Programming ................ 23 symbolized by “Carmen” speedy Just In Time (JIT) compiler. Also, even older OS/2 the two-sided coffee cup versions, including Warp 3.0, Warp Connect Utilities & Tools ........................ 24 by dutch ceramist Erik-Jan |and Warp Server are now fully able to suppport Java. Books ............................................. 28 Kwakkel on the cover page. But the great work does not end with that: you can Registration Service .............
    [Show full text]
  • This PDF Is Provided Solely As a Reader Service. It Is Not Intended for Reproduction Or Public Distribution
    Copyright (c) 2007, CMP Media LLC. Important note: This PDF is provided solely as a reader service. It is not intended for reproduction or public distribution. For more information on obtaining a Reprint, please contact a Reprint Services Rep at 516.562.7026 or visit www.cmpreprints.com/faxback.jhtml CODEF SCANNERS A LL S E { Sense of Security? } AS MORE CUSTOM-BUILT SOFTWARE MAKES ITS WAY INTO YOUR APP INFRASTRUCTURE, THE THREAT LANDSCAPE IS SHIFTING. CAN AN AUTOMATED CODE SCANNER SECURE YOUR BUSINESS, OR WILL IT SIMPLY LULL THE IT STAFF WHILE CRIMINALS by Justin Schuh Illustration by Ryan Etter PROWL? REMEMBER WHEN ATTACKERS WERE JUST OUT FOR FAME AND requirements. Purpose-built apps provide the frame- glory, and application security was someone else’s prob- work for a huge range of business processes, from lem? Big targets like Microsoft and Oracle drew the fire. dynamic Web sites, SOA (service-oriented architecture) All enterprise IT had to do was apply patches regularly and e-commerce to business process automation and and keep a properly configured firewall. administration. They also provide a target-rich environ- Those days are gone. Cracking corporate networks is ment for would be attackers. no longer a kid’s game, it’s a lucrative criminal growth In response to this escalating threat, major compliance industry. The attackers who stole 45.6 million credit- standards like HIPAA and PCI DSS (Payment Card Industry and debit-card numbers Data Security Standard) are incorporating—or at least STRATEGIC from TJX Companies were implying the necessity of—application security processes.
    [Show full text]
  • Buyers Guide Product Listings
    BUYERS GUIDE PRODUCT LISTINGS Visual Studio Magazine Buyers’ Guide Product Listings The 2009 Visual Studio Magazine Buyers’ Guide listings comprise more than 700 individual products and services, ranging from developer tooling and UI components to Web hosting and instructor-led training. Included for each product is contact and pricing information. Keep in mind that many products come in multiple SKUs and with varied license options, so it’s always a good idea to contact vendors directly for specific pricing. The developer tools arena is a vast and growing space. As such, we’re always on the prowl for new tools and vendors. Know of a product our readers might want to learn more about? E-mail us at [email protected]. BUG & FEATURE TRACKING Gemini—CounterSoft Starts at $1189 • countersoft.com • +44 (0)1753 824000 Rational ClearQuest—IBM Rational Software $1,810 • ibm.com/rational • 888-426-3774 IssueNet Intercept—Elsinore Technologies Call for price • elsitech.com • 866-866-0034 FogBugz 7.0—Fog Creek Software $199 • fogcreek.com • 888-364-2849; 212-279-2076 SilkPerformer—Borland Call for price • borland.com • 800-632-2864; 512-340-2200 OnTime 2009 Professional—Axosoft Starts at $795 for five users • axosoft.com • 800-653-0024; SourceOffSite 4.2—SourceGear 480-362-1900 $239 • sourcegear.com • 217-356-0105 Alexsys Team 2.10—Alexsys Surround SCM 2009—Seapine Software Starts at $145 • alexcorp.com • 888-880-2539; 781-279-0170 Call for price • seapine.com • 888-683-6456; 513-754-1655 AppLife DNA—Kinetic Jump Software TeamInspector—Borland
    [Show full text]
  • 2008 BZ Research Eclipse Adoption Study
    5th Annual Eclipse Adoption Study November 2008 (With comparisons to November 2007, November 2006, November 2005 and September 2004 Studies) 7 High Street, Suite 407 Huntington, NY 11743 631-421-4158 www.bzresearch.com © BZ Research November 2008 Eclipse Adoption Study © BZ Research November 2008 Table of Contents Table of Contents................................................................................................................................................... 2 Methodology .......................................................................................................................................................... 4 Universe Selection ................................................................................................................................................. 6 Question 1. Do the developers within your organization use Eclipse or Eclipse-based tools? ........................ 7 Question 2. Which version(s) of Eclipse are you using? .................................................................................... 8 Question 3. How long have you been using Eclipse or Eclipse-based tools and technologies (either at work, or for your personal projects)?.............................................................................................................................. 9 Question 4. What type of software are you (or your organization) developing using Eclipse-based tools and technologies? (Note: OSI refers to Open Source Initiative, see www.opensource.org for more information.) ...............................................................................................................................................................................10
    [Show full text]
  • The OS/2 Warp 4 CID Software Distribution Guide
    SG24-2010-00 International Technical Support Organization The OS/2 Warp 4 CID Software Distribution Guide January 1998 Take Note! Before using this information and the product it supports, be sure to read the general information in Appendix D, “Special Notices” on page 513. First Edition (January 1998) This edition applies to OS/2 Warp 4 in a software distribution environment and to NetView Distribution Manager/2 (NVDM/2) with Database 2 (DB2) Version 2.11 for OS/2 and Tivoli TME 10 Software Distribution 3.1.3 for OS/2 (SD4OS2) software distribution managers. This edition also applies to OS/2 Warp 4 subcomponents, such as TCP/IP 4.0, MPTS, NetFinity 4.0, Peer Services, and LAN Distance, and to OS/2- related products, such as eNetwork Personal Communications for OS/2 Warp, eNetwork Communications Server for OS/2 Warp, Transaction Server, Lotus Notes, and Lotus SmartStuite 96 for OS/2 Warp. Comments may be addressed to: IBM Corporation, International Technical Support Organization Dept. DHHB Building 045 Internal Zip 2834 11400 Burnet Road Austin, Texas 78758-3493 When you send information to IBM, you grant IBM a non-exclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you. © Copyright International Business Machines Corporation 1998. All rights reserved Note to U.S Government Users – Documentation related to restricted rights – Use, duplication or disclosure is subject to restrictions set forth in GSA ADP Schedule Contract with IBM Corp. Contents Figures. .xiii Tables. xvii Preface. .xix How This Redbook in Organized .
    [Show full text]
  • Introducción a Linux Equivalencias Windows En Linux Ivalencias
    No has iniciado sesión Discusión Contribuciones Crear una cuenta Acceder Página discusión Leer Editar Ver historial Buscar Introducción a Linux Equivalencias Windows en Linux Portada < Introducción a Linux Categorías de libros Equivalencias Windows en GNU/Linux es una lista de equivalencias, reemplazos y software Cam bios recientes Libro aleatorio análogo a Windows en GNU/Linux y viceversa. Ayuda Contenido [ocultar] Donaciones 1 Algunas diferencias entre los programas para Windows y GNU/Linux Comunidad 2 Redes y Conectividad Café 3 Trabajando con archivos Portal de la comunidad 4 Software de escritorio Subproyectos 5 Multimedia Recetario 5.1 Audio y reproductores de CD Wikichicos 5.2 Gráficos 5.3 Video y otros Imprimir/exportar 6 Ofimática/negocios Crear un libro 7 Juegos Descargar como PDF Versión para im primir 8 Programación y Desarrollo 9 Software para Servidores Herramientas 10 Científicos y Prog s Especiales 11 Otros Cambios relacionados 12 Enlaces externos Subir archivo 12.1 Notas Páginas especiales Enlace permanente Información de la Algunas diferencias entre los programas para Windows y y página Enlace corto GNU/Linux [ editar ] Citar esta página La mayoría de los programas de Windows son hechos con el principio de "Todo en uno" (cada Idiomas desarrollador agrega todo a su producto). De la misma forma, a este principio le llaman el Añadir enlaces "Estilo-Windows". Redes y Conectividad [ editar ] Descripción del programa, Windows GNU/Linux tareas ejecutadas Firefox (Iceweasel) Opera [NL] Internet Explorer Konqueror Netscape /
    [Show full text]
  • Creating Telephony Applications for Both Windows® and Linux
    Application Note Dialogic Research, Inc. Dual OS Applications Creating Telephony Applications for Both Windows® and Linux: Principles and Practice Application Note Creating Telephony Applications for Both Windows® and Linux: Principles and Practice Executive Summary To help architects and programmers who only have experience in a Windows® environment move their telephony applications to Linux, this application note provides information that aims to make the transition easier. At the same time, it takes into account that the original code for Windows may not be abandoned. The ultimate goal is to demonstrate how to create flexible OS-agnostic telephony applications that are easy to build, deploy, and maintain in either environment. Creating Telephony Applications for Both Windows® and Linux: Principles and Practice Application Note Table of Contents Introduction .......................................................................................................... 2 Moving to a Dual Operating System Environment ................................................. 2 CMAKE ......................................................................................................... 2 Boost Jam .................................................................................................... 2 Eclipse .......................................................................................................... 3 Visual SlickEdit ............................................................................................. 3 Using Open Source Portable
    [Show full text]
  • PC DOS 7 Technical Update
    PC DOS 7 Technical Update Document Number GG24-4459-00 February 1995 International Technical Support Organization Boca Raton Center Take Note! Before using this information and the product it supports, be sure to read the general information under “Special Notices” on page xiii. First Edition (February 1995) This edition applies to PC DOS Version 7. Order publications through your IBM representative or the IBM branch office serving your locality. Publications are not stocked at the address given below. An ITSO Technical Bulletin Evaluation Form for reader′s feedback appears facing Chapter 1. If the form has been removed, comments may be addressed to: IBM Corporation, International Technical Support Organization Dept. 91J Building 235-2 Internal Zip 4423 901 NW 51st Street Boca Raton, Florida 33431-1328 When you send information to IBM, you grant IBM a non-exclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you. Copyright International Business Machines Corporation 1995. All rights reserved. Note to U.S. Government Users — Documentation related to restricted rights — Use, duplication or disclosure is subject to restrictions set forth in GSA ADP Schedule Contract with IBM Corp. Abstract IBM PC DOS 7 has been designed for all types of users who need an efficient single tasking personal computer operating system. It incorporates many new utilities such as anti-virus software, comprehensive backup programs, PCMCIA support and DOS Pen extensions. Also incorporated are new features to enhance the available memory and disk space. This book is a technical reference, upgraded from IBM DOS 5.02 and written for DOS programmers, who develop applications for IBM Personal Computers or compatible systems.
    [Show full text]
  • Slickedit Plug-In for Eclipse V3.2 User Guide
    SlickEdit® Plug-In v3.3 for Eclipse™ SlickEdit® Plug-In v3.3 for Eclipse™ Information in this documentation is subject to change without notice and does not represent a commitment on the part of SlickEdit Inc. The software described in this document is protected by U.S. and international copyright laws and by other applicable laws, and may be used or copied only in accordance with the terms of the license or nondisclosure agreement that accompanies the software. It is against the law to copy the software on any medium except as specifically allowed in the license or nondisclosure agreement. The licensee may make one copy of the software for backup purposes. No part of this documentation may be reproduced or trans- mitted in any form or by any means, electronic or mechanical, including photocopying, recording, or information storage and retrieval systems, for any purpose other than the licensee's personal use, without the express written permission of SlickEdit Inc. Copyright 1988-2007 SlickEdit Inc. SlickEdit, Visual SlickEdit, Clipboard Inheritance, DIFFzilla, SmartPaste, Context Tagging, and Slick-C are registered trademarks of SlickEdit Inc. Code Quick | Think Slick is a trademark of SlickEdit Inc. All other products or company names are used for identifica- tion purposes only and may be trademarks of their respective owners. Protected by U.S. Patent 5,710,926. Table of Contents 1. Introduction ................................................................................................................... 1 How to Get the Most out
    [Show full text]
  • Slickedit® Core V3.7 for Eclipse™
    SlickEdit® Core v3.7 for Eclipse™ All editors are not created equal. At SlickEdit, our belief is that it’s the code that really matters. SlickEdit Core is designed for power programmers by power programmers. We take great pride in delivering unparalleled power, speed, and flexibility to our customers. Our goal is to remove the tedious tasks involved with programming, allowing you to focus on the reason you first got into programming: the thrill of writing great code. Use SlickEdit Core to write more code in less time. Cool Features Code Navigation • Type fewer characters and make fewer Use Ctrl+Dot to jump from a symbol to its definition. Use Ctrl+/ to list all errors using syntax expansion, completions, of the references for the current symbol and optionally jump to the first aliases, and code templates. reference. • Context Tagging ® builds a database of your Preview View symbols, allowing you to quickly navigate Displays the definition of the current symbol in the editor window, SPEED SPEED from a symbol to its definition or references allowing you to see the definition without having to open a separate without searching. buffer. • Use commands and key bindings to keep your hands on the keyboard for maximum References View Displays the list of references for a symbol. Use a single keystroke to productivity. open the References view for the current symbol, or you can type or select a symbol in the Symbol drop-down list. Syntax Expansion Expands common block structures ( if , for , try , etc.) when the initial keyword is typed. SlickEdit Core provides the power to work Surround With with your real-world projects.
    [Show full text]
  • Introducing Adafruit Pygamer Created by Kattni Rembor
    Introducing Adafruit PyGamer Created by Kattni Rembor Last updated on 2021-04-26 11:49:30 AM EDT Guide Contents Guide Contents 2 Overview 7 Which Board? 11 Similarities 11 Differences between PyGamer and PyBadge/PyBadge LC 11 Differences between PyBadge & PyBadge LC 11 Comparison Table 11 Update the PyGamer Bootloader 15 Updating Your PyGamer Bootloader 15 Oh no, I updated MacOS already and I can't see the boot drive! 17 Pinouts 18 Microcontroller and Flash 18 Power 19 Display 19 Build the PyGamer Case 24 Prep 25 Paper Protection 26 Speaker 27 Battery 28 Button Caps 29 Case Layers 30 Spacers 31 Backing 31 Fasteners 32 Load a MakeCode Game on PyGamer/PyBadge 35 Board Definition 36 Change Board screen 36 Bootloader Mode 37 Drag and Drop 38 Play! 38 CircuitPython 39 Set up CircuitPython Quick Start! 39 Further Information 39 Installing Mu Editor 41 Download and Install Mu 41 Using Mu 41 Creating and Editing Code 43 Creating Code 43 Editing Code 45 Your code changes are run as soon as the file is done saving. 45 1. Use an editor that writes out the file completely when you save it. 46 2. Eject or Sync the Drive After Writing 47 Oh No I Did Something Wrong and Now The CIRCUITPY Drive Doesn't Show Up!!! 47 Back to Editing Code... 47 Exploring Your First CircuitPython Program 47 Imports & Libraries 48 Setting Up The LED 48 Loop-de-loops 48 What Happens When My Code Finishes Running? 49 What if I don't have the loop? 49 © Adafruit Industries https://learn.adafruit.com/adafruit-pygamer Page 2 of 129 More Changes 49 Naming Your Program File 50 Connecting
    [Show full text]
  • IT CV for Claus Stovgaard
    C u r r i c u l um V i t a e IT expertise This support CV, gives a more detailed overview of my R&D and IT expertise. Any questions can be addressed to my mail address [email protected] My primary focus is firmware programming and design for embedded systems. The link between an input from the physical world through a sensor, reacting on this and bringing the result back to the physical world. This task will typical contain one or more connections to high level database systems. I target a solution where software design parameters like stability, flexibility, readability, maintenance and extension possibility is integrated with the maximum performance from the hardware. I prefer the agile development approach combined with tools like git for version control, Jenkins for CI and Google Mock / Google Test for unit testing. I believe in using opensource components to help accelerate development and contribute to upstream projects. Based on this have I changed my position more and more to become an embedded Linux architect. Next to my education, I have been working with system-administration for several years, including both server and network administration. Programming Language Years of experience Level C++ 10 High C 8 High Shell scripting (primarily BASH) 6 High LATEX 3 High VHDL 3 Medium Matlab / SciLab 3 Medium Perl 3 Medium Java 2 Medium Web: (X)HTML, CSS, JavaScript, PHP 5 Medium Python 3 Medium Assembler (eZ8, PIC, ARM7) 3 Low I currently prefer C++ as system language combined with Python for scripting / glue code. Operating systems System Years of experience Level Linux generally 14 High Gentoo 14 High Ubuntu/Debian 9 High Windows generally 18 High OS X 6 High eCos 1 Low QNX 1 Low My primary platform is Linux, as in my experince it supports development and system admi- nistration best.
    [Show full text]