Skip to content

Commit

Permalink
Cleaning up for pypi release
Browse files Browse the repository at this point in the history
  • Loading branch information
Rex-- committed Mar 6, 2022
1 parent 41646e4 commit b15efca
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# picchick
A utility to program PIC microcontrollers
A utility to aid in programming PIC microcontrollers


## Overview
Expand All @@ -11,7 +11,7 @@ It attempts to do the majority of the work on the host computer, and sends a sim
## Usage

```
usage: picchick.py [options] [hexfile]
usage: picchick [options] [hexfile]
A utility for programming PIC19196 microcontrollers
Expand All @@ -22,13 +22,20 @@ options:
-h, --help show this help message and exit
-f, --flash flash hexfile onto the device
--read addr read specified address or chunk of memory
--write addr word write word to specified address or chunk of memory
--erase addr erase specified address or chunk of memory
--write addr word write word to specified address
--erase [addr] erase device or specified address
-d chipID, --device chipID
device to be programmed
-p port, --port port programmer serial port
--baud baud serial connection baudrate
--map display the hexfile
--list-ports list available serial ports
--list-devices list available device configurations
flag arguments:
[addr]: device memory address in hexadecimal
all all device memory areas
flash user flash area
```


Expand Down
8 changes: 7 additions & 1 deletion software/picchick/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


DESCRIPTION = '''\
A utility for programming PIC19196 microcontrollers\
A utility to aid in programming PIC microcontrollers\
'''

USAGE = '''\
Expand Down Expand Up @@ -83,6 +83,12 @@ def parseArgv():
# The map flag only requires the hexfile to be present
hexfile_reqd = both_reqd or (args.map)

# If we don't need to do anything, print help because
# the user needs it
if not hexfile_reqd and not programmer_reqd:
parser.print_help()
sys.exit(0)


# Firstly, if we need the hexfile, check if it exists
# If not, immediatly exit with a helpful message
Expand Down
2 changes: 1 addition & 1 deletion software/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description = A utility for programming PIC microntronllers
url = https://github.com/rex--/picchick/tree/master/software
classifiers =
Programming Language :: Python :: 3.10
License :: NCSA
License :: OSI Approved :: University of Illinois/NCSA Open Source License

[options]
packages = picchick
Expand Down

0 comments on commit b15efca

Please sign in to comment.