100% found this document useful (1 vote)
12 views

Programming With Micropython Embedded Programming With Microcontrollers And Python Draft Nicholas H Tollervey download

The document discusses 'Programming With MicroPython', a book by Nicholas H. Tollervey that introduces MicroPython, a version of Python designed for microcontrollers and embedded systems. It covers various hardware platforms like PyBoard, BBC micro:bit, and ESP8266/ESP32, while emphasizing the potential of programming these devices to create 'enchanted' objects. The text highlights the ease of learning Python and its supportive community, making it an ideal choice for embedded programming.

Uploaded by

myrdasunani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
12 views

Programming With Micropython Embedded Programming With Microcontrollers And Python Draft Nicholas H Tollervey download

The document discusses 'Programming With MicroPython', a book by Nicholas H. Tollervey that introduces MicroPython, a version of Python designed for microcontrollers and embedded systems. It covers various hardware platforms like PyBoard, BBC micro:bit, and ESP8266/ESP32, while emphasizing the potential of programming these devices to create 'enchanted' objects. The text highlights the ease of learning Python and its supportive community, making it an ideal choice for embedded programming.

Uploaded by

myrdasunani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 40

Programming With Micropython Embedded

Programming With Microcontrollers And Python


Draft Nicholas H Tollervey download

https://ebookbell.com/product/programming-with-micropython-
embedded-programming-with-microcontrollers-and-python-draft-
nicholas-h-tollervey-43272800

Explore and download more ebooks at ebookbell.com


Here are some recommended products that we believe you will be
interested in. You can click the link to download.

Programming With Micropython Embedded Programming With


Microcontrollers And Python 1st Edition Nicholas H Tollervey

https://ebookbell.com/product/programming-with-micropython-embedded-
programming-with-microcontrollers-and-python-1st-edition-nicholas-h-
tollervey-6733772

Micropython Cookbook Over 110 Practical Recipes For Programming


Embedded Systems And Microcontrollers With Python Alsabbagh

https://ebookbell.com/product/micropython-cookbook-over-110-practical-
recipes-for-programming-embedded-systems-and-microcontrollers-with-
python-alsabbagh-22965632

Programming With Micropython First Edition Nicholas H Tollervey

https://ebookbell.com/product/programming-with-micropython-first-
edition-nicholas-h-tollervey-11939448

Micropython For The Internet Of Things A Beginners Guide To


Programming With Python On Microcontrollers Charles Bell

https://ebookbell.com/product/micropython-for-the-internet-of-things-
a-beginners-guide-to-programming-with-python-on-microcontrollers-
charles-bell-38548020
Micropython For The Internet Of Things A Beginners Guide To
Programming With Python On Microcontrollers Charles Bell

https://ebookbell.com/product/micropython-for-the-internet-of-things-
a-beginners-guide-to-programming-with-python-on-microcontrollers-
charles-bell-58183410

Micropython And The Internet Of Things A Gentle Introduction To


Programming Digital Circuits With Python Grinberg

https://ebookbell.com/product/micropython-and-the-internet-of-things-
a-gentle-introduction-to-programming-digital-circuits-with-python-
grinberg-46126538

Programming With Openscad A Beginners Guide To Coding 3dprintable


Objects 1st Edition Justin Gohde

https://ebookbell.com/product/programming-with-openscad-a-beginners-
guide-to-coding-3dprintable-objects-1st-edition-justin-gohde-46410140

Programming With Python And Its Applications To Physical Systems M


Shubhakanta Singh

https://ebookbell.com/product/programming-with-python-and-its-
applications-to-physical-systems-m-shubhakanta-singh-50637024

Programming With Microsoft Visual Basic 2012 6th Edition Zak

https://ebookbell.com/product/programming-with-microsoft-visual-
basic-2012-6th-edition-zak-55132386
1. 1. What is MicroPython?
1. Why Micro?
2. Why Python?
3. MicroPython Genesis
4. Dive In!
2. 2. PyBoard
1. The Hardware
2. Developer Setup
3. 3. BBC micro:bit
1. The Hardware
2. Developer Setup
4. 4. Adafruit Circuit Playground Express
1. The Hardware
2. Developer Setup
5. 5. ESP8266 / ESP32
1. The Hardware
2. Developer Setup
1. ESP8266
2. ESP32
6. 6. Thinking Embedded
1. Human Drives
2. Abilities of Enchantment
3. Steps on the Ladder of Enchantment
7. 7. Idiomatic MicroPython
1. The Zen of MicroPython
2. Memory
3. Performance
Programming on MicroPython
Embedded Programming on the Handheld ARM-Powered Computer

Nicholas H. Tollervey
Programming on MicroPython
by Nicholas H. Tollervey

Copyright © 2017 Nicholas H. Tollervey. All rights reserved.

Printed in the United States of America.

Published by O’Reilly Media, Inc. , 1005 Gravenstein Highway North,


Sebastopol, CA 95472.

O’Reilly books may be purchased for educational, business, or sales


promotional use. Online editions are also available for most titles
( http://oreilly.com/safari ). For more information, contact our
corporate/institutional sales department: 800-998-9938
or [email protected] .

Editors: Brian Jepson and Jeff Bleiel


Production Editor: FILL IN PRODUCTION EDITOR
Copyeditor: FILL IN COPYEDITOR
Proofreader: FILL IN PROOFREADER
Indexer: FILL IN INDEXER
Interior Designer: David Futato
Cover Designer: Karen Montgomery
Illustrator: Rebecca Demarest

January -4712: First Edition


Revision History for the First
Edition
2017-04-07: First Early Release
2017-06-01: Second Early Release

See http://oreilly.com/catalog/errata.csp?isbn=9781491972694 for release


details.

The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.


Programming on MicroPython, the cover image, and related trade dress are
trademarks of O’Reilly Media, Inc.

While the publisher and the author(s) have used good faith efforts to ensure that
the information and instructions contained in this work are accurate, the
publisher and the author(s) disclaim all responsibility for errors or omissions,
including without limitation responsibility for damages resulting from the use
of or reliance on this work. Use of the information and instructions contained
in this work is at your own risk. If any code samples or other technology this
work contains or describes is subject to open source licenses or the
intellectual property rights of others, it is your responsibility to ensure that
your use thereof complies with such licenses and/or rights.

978-1-491-97269-4

[FILL IN]
Chapter 1. What is MicroPython?
MicroPython is a reimplementation of the Python programming language that
targets microcontrollers and embedded systems.

Microcontrollers are computers shrunk onto a single, very small chip.


Embedded systems are computers that function within a larger mechanical or
electrical system. Embedded systems often use microcontrollers.

This book introduces, explores and explains MicroPython through four typical
yet different devices1, all of which have a microcontroller at their core.

Such devices are very different to other sorts of computer. Most computers
contain lots of parts: memory, storage and processing are physically separate
components containing various specialist chips. They may also contain
additional parts for sound, graphics and networking capabilities. Such
computers are significantly more powerful than the microcontroller based
devices used in this book.

This raises two important questions:

Why use such small underpowered microcontroller based devices?


Why use Python?

Answering these questions illustrates why there is so much excitement


surrounding MicroPython.
Why Micro?
Computers are amazing and seemingly magical things.

For example, it is commonplace to make video calls to the other side of the
world yet, just twenty years ago this was the realm of science fiction.

Any sufficiently advanced technology is indistinguishable from magic.

Arthur C.Clarke Hazards of Prophecy: The Failure of Imagination.

The quote from science fiction author Arthur C.Clarke suggests advanced
technology appears as awe inspiring magic. He forgot to mention that any
sufficiently advanced technology is boring if it’s everywhere. Familiarity and
ubiquity banish any sense of wonder for all but the most inquisitive.

What do I mean?

I am just old enough to remember a world without computers everywhere. First


encounters with computers felt like magic. For instance, when I was at
university in the 1990s I spent hours connected to multi-user text based virtual
worlds2 collaborating with people connected to the server from all over the
globe. It felt amazing to work, in real-time, with such a diverse and far flung
group of friends. I was especially pleased to discover I could chat with my
fellow users; albeit in a textual sense. Being British I always enquired about
the weather and found it strangely satisfying to instantly know conditions in
San Francisco, Tel Aviv or Singapore (usually, better than the weather in
London). Knowing this information and, more importantly, knowing how to get
such information felt like magic.

Depending on your age, you probably experience one of two reactions to my


example:

1. A tingle of nostalgia for those wonderful, exciting and amazing early days
of the Internet.
2. Spare us reminiscences of the “good old days”, haven’t you heard of
social media, grandpa?

Today, my own children are unsurprised when they video-call their


grandparents from mobile phones. There is no longer a sense of amazement or
wonder at such extraordinary feats of engineering. Rather, like generations of
children before them, they’re more impressed, intrigued and entertained by the
magic found in stories, legends and fairy tales.

Why?

It captures their imagination whereas the use of every-day objects is humdrum


and unremarkable.

Take the world of J.K.Rowling’s Harry Potter books -- a world populated by


enchanted objects, magical forces and incantations that bestow upon the user
the ability to transform the world around them. Readers are drawn into the
world because they imagine, “wouldn’t it be amazing if I owned an invisibility
cloak, flying broom or could cast a spell that allowed me to breathe under
water?” There is a sense of wonder in the magic found in Rowling’s world.
The same could be said of Tolkien’s Middle Earth, ancient Greek legends, any
number of super heroes and “Force” wielding Jedi in the Star Wars movies.
It’s fun to be immersed in such magical realms -- they entertain by encouraging
a sense of wonder while giving imagination the freedom to wander. It’s an
opportunity to ask yourself, “what would I do if I were the magic wielding
hero?”

What has this to do with microcontrollers?

Such computing devices allow programmers to ask a similar question.


Imaginations are set free to roam but, just as in literature and life, there is
always a tension between right and wrong, good and evil, yes or no.

How?

Everyday objects containing small, embedded microcontrollers become


programmable. If they are programmable, they have agency (the state of being
in action) and autonomy (the capability of choosing how to act given certain
situations). Rather than being static, dead objects, they become independent
and demonstrate behaviours that bring them to life. Microcontroller-based
devices are small enough to be stuck, sewn, soldered and screwed in and on to
other objects, turning every-day things into programmable “enchanted”
objects3. Most importantly, anyone with the right knowledge can “cast a spell”
in code to modify the activities and behaviour of such objects.

Just as in literary worlds, embedded systems appear magical in ways that


engage and inspire. Consequently, our world becomes programmable in a way
that is similar to how make-believe spells control a fictional, magical world.
Imagination and a sense of wonder for computing is, in a sense, restored. We
regain the opportunity to ask ourselves, “what would I do if I could program
these devices?”

Objects containing embedded and potentially networked microcontrollers are


“enchanted” in the same way objects are in fictional magical worlds -- you
simply give them instructions. Just like in magical stories, it is important to
understand how such incantations in code make enchanted embedded objects
work for you.

That’s where Python comes into the picture.


Why Python?

Figure 1-1. In 2016 Python was ranked 3rd most popular programming language in the world by the
IEEE. Guido van Rossum (the inventor of Python) correctly points out the omission of the
“Embedded” flag thanks to MicroPython4 .

Python is an easy to learn, widely used and expressive programming language -


- it’s easy to write what you mean in Python with concise and simple code.
Additionally, Python flourishes because it has a well-organised, proactive,
diverse and welcoming global community.
Another Random Document on
Scribd Without Any Related Topics
dead, would recognise me. I might walk down the streets of
Daneford to-morrow, and talk about my own sad end to my most
intimate friend, and he would not recognise me. The Daneford Bank
would open an account for me to-morrow in the name of Grey, and
observe no likeness between their new customer and their old
master. I am a new man already. I feel new blood in all my veins,
new sinews in all my limbs; the nightmare of the past is vanishing; I
shall sleep now of nights, and whistle once more while I dress of
mornings. Ten thousand times better this feeling than all the pomp
my ambition longed for with the canker and the care."
He took from the pocket of the coat he had removed a small packet,
thinking: "All I want is the money. Twenty thousand pounds will be a
large fortune in either Spain or Italy."
He threw the clothes he had worn on the bed, opened the cupboard,
and took out one after another four cans. Two of these he emptied
over his own bed, one on the floor and furniture, and one on the
landing and first flight of the stairs. Turpentine!
He then threw the four cans on the bed, wrenched off the gas-
brackets and set fire to the gas at the ends of the broken pipes.
He cast one hasty glance round.
"All right!"
He struck a match and held it to the saturated bed.
A little spirt of flame shot out of the counterpane to the match. The
spirt of flame then fell back and spread slowly until it formed a spire
as large as a pine-cone.
Grey backed to the door and seized the handle.
From that cone flashed twenty javelins of light this way and that.
The air of the room sobbed, and a solid mass of white flame stood
up over that bed.
Swiftly opening the door Grey sprang out, and shut the door leading
to the landing. A second he stood there, threw up his hands, and
cried in a husky voice:
"Saved!"
He looked out of the window.
"All right."
He put his hand on the iron bar.
"Quite firm."
Suddenly he drew back. Had he seen anyone below?
No.
He put his hand on his breast.
"The money is here," he whispered to himself, "but I have forgotten
something. What is it?" A few seconds passed and he yelled: "I
know! I know! What I forgot is on the roof."
With furious speed he dashed up the noisome stairs.
As he did so there arose a soft flapping sound at the door on the
landing, and a lazy serpent of white flame crawled across the
landing and climbed up the stairs.

A sweetheart of one of the maid-servants, leaving the Manor House


by the side door at half-past nine, saw fire issuing from the window
on the first floor of the tower, ran back to the servants' hall, and
gave the alarm.
By that time the fire raged madly, rioting on the parched woodwork
of the staircase and the dry joists and planks of the floors. The
staircase was a cavern of white flame. In front of the glare rushed a
fierce column of black suffocating smoke. Twice already had a man
tried to force his way down, and twice had he been driven back
before the scalding vapour. Now he crouched on the roof in the
corner furthest from the tank.
By ten a small crowd had assembled and he could hear men at
work. The roof was getting hot; now and then the opening from the
staircase panted forth a cloud of sparks.
"If they see me they will try to save me. They will come here, find
out all, and save me—for the gallows. Better the fire."
He crouched closer and held his breath lest they should hear him
breathe. He had no memory of how he came to that roof. He must
have rushed there in one of those unconscious moments.
At half-past ten red tongues began to issue from the opening in the
roof.
By a quarter to eleven the weight of the tank told on the sapped
roof. That portion showed signs of subsidence.
Still the man crouched low, his eyes now fixed in agonised
expectation on the tank.
The man on the roof heard the clocks of Daneford strike eleven. Just
then the tank trembled, swayed a moment, then shot downward
with a roar. Up the hole made by it danced a cloud of flame.
The man on the roof sprang to his feet, and with a shout leaped on
the parapet crying:
"Help! Help! For God's sake, help!"
With that tank the evidence against him had vanished.
A groan came up from the people below, and then a cheer.
"The fire-escape is coming. Have courage!"
Shading his eyes with his hands he looked in the direction of the
lodge, and saw approaching by the carriage-way the fire-escape.
"Help! Quick!"
"Courage, Wat! We will save you!"
Another crash. Something warm struck his back. He turned round.
All the roof was gone now. He looked into a pool of flame.
A fiercer blow than the former. Sight gone. Head giddy. Ah!
They saw the flame touch him; they saw him thrust his arms before
his face. They saw him sway, and fall into the crater.
They knew he had lost his life in the tower that night, but they never
knew that tower was the tomb of husband and wife.

"Well, Maud, as we are not leaving home for our honeymoon, and
there is only one place in the Castle where you have never been—
the top of the Tower of Silence, suppose we take lanterns and go
there for an hour. I am curious to see this historic tower, this Weird
Sister dowered with a legend of blood. You are not afraid to go."
"I should like to go. There is nothing I would like better. It will be an
adventure."
When they were there he said: "I am glad we came. We are
promised a glorious view presently. There is the moon rising."
"The moon does not rise there. It rises here," pointing.
"Then there must be a fire."
"That is the direction of the Manor House——."

THE END.
CHARLES DICKENS AND EVANS, GREAT NEW STREET, FETTER
LANE, E.C.

NOTICE.
Now ready, at every Library in the Kingdom,

THE MYSTERY OF KILLARD.


A New Novel.

By RICHARD DOWLING,
Author of "The Weird Sisters." In Three Vols.

"A noticeable book; it contrives to arouse and maintain interest


with a very small number of incidents and personages,
dramatically handled. Hugo might in his younger days, and
before he had learnt the fatal lesson of setting his own
personality above the claims of art and reason, have given us
such pictures."—Academy.
"All things being taken in consideration, it may be pronounced a
decided success ... This work alone would have been enough to
have established the author's claim to a place amongst the first
of living writers of exciting fiction of the more intense kind."—
Morning Post.
"Full of dramatic action. Clever delineations of strongly
contrasted human eccentricities, interwoven with which is a
love-story of singular freshness."—Illustrated London News.
"The nature of the novel is indeed uncommonly fine."—World.
"Novels are so apt to belie their name by running in the most
well-worn of ruts, and by exhibiting a striking deficiency of
novelty, that we welcome with special eagerness any outcome
of real imaginative invention; and the conception of the original
situation, the nature of which is sufficiently indicated here,
amply proves that Mr. Dowling possesses a large measure of
genuine creative power."—Spectator.
"There is not a single bit of 'good society' in the whole book, an
omission for which readers may well be thankful. The story is
kept mysterious with success."—Athenæum.
"The novel is unquestionably powerful, well written, true to the
life which it describes, and eminently pure and healthy in
tone."—Globe.
"Mr. Dowling has wisely avoided the footsteps of his
predecessors, and has given us a powerfully realistic picture of
the wild unexplored beauty of the coast of Clare and its
inhabitants, not relying upon such poor phrases as 'begorra' and
'bedad' for humour. The characters are well drawn, the
descriptions are almost photographic, and the story is vigorously
written."—Whitehall Review.
"He has given us a book to 'read,' and one we can commend to
all who care for a realistic picture without the too common trash
associated with the ordinary novel."—Examiner.
"Is a psychological study. The style is all that it should be:
simple, graphic, and at times powerful. We have not read a
novel with so much pleasure for a long time."—John Bull.
"A book to read and be thankful for. It will be a day to be
marked by a white stone when Mr. Dowling gives us another
novel."—Standard.
TINSLEY BROTHERS' NEW NOVELS.
BY THE AUTHOR OF "A LONDON SEASON."
COUNTY PEOPLE. By Mrs. Pender Cudlip, author of "A London
Season," "Denis Donne," &c. 3 vols.

BY THE AUTHOR OF "PRETTY MISS BELLEW."


A GARDEN OF GIRLS. By Theo. Gift, author of "Pretty Miss Bellew,"
"True to her Trust," "Maid Ellice," &c. 3 vols.

BY THE AUTHOR OF "A WOMAN SCORNED."


MOLLY CAREW. A New Novel. By E. Owens Blackburn, author of
"Illustrious Irishwomen," "A Woman Scorned," &c. 3 vols.

BY THE AUTHOR OF "WILD GEORGIE."


SEALED BY A KISS. By Jean Middlemass, author of "Mr. Dorillion,"
"Wild Georgie," &c. 3 vols.

BY THE AUTHOR OF "JENNIE OF 'THE


PRINCE'S.'"
NELL-ON AND OFF THE STAGE. By B. H. Buxton, author of "Jennie of
'The Prince's,'" "Won," "Fetterless," "Great Grenfell Gardens," &c.
BY THE AUTHOR OF "THE MYSTERY OF
KILLARD."
THE WEIRD SISTERS. By Richard Dowling, author of "The Mystery of
Killard," &c. 3 vols.

BY THE AUTHOR OF "AN INNOCENT SINNER."


OUR BOHEMIA. By Mabel Collins, author of "An Innocent Sinner," "In
this World," &c. 3 vols.
"You shall see great difference betwixt our Bohemia and your
Sicilia."—Winter's Tale.

BY THE AUTHOR OF "THE WEIRD SISTERS."


THE MYSTERY OF KILLARD. By Richard Dowling, author of "The
Weird Sisters" (see "Tinsley's Magazine"). 3 vols.

BY MAURICE LEE.
O WHERE AND O WHERE? 2 vols.

BY THE AUTHOR OF "JULIET'S GUARDIAN."


POOR WISDOM'S CHANCE. By Mrs. H. Lovett Cameron, author of
"Juliet's Guardian," &c. 3 vols.
THE BLACK COTTAGE; Or Tom Brace's Picture: A GHOST STORY FOR
THE FIRESIDE. BY W. E. BROUGHAM.
TINSLEY BROTHERS' NEW
PUBLICATIONS.
Illustrated with upwards of 400 ENGRAVINGS from DESIGNS by
GERMAN ARTISTS.
Now ready, in 2 vols.

BERLIN UNDER THE NEW EMPIRE.


Its Institutions, Inhabitants, Industry, Monuments, Museums, Social
Life, Manners, and Amusements.

By HENRY VIZETELLY.
AUTHOR OF "THE STORY OF THE DIAMOND NECKLACE," ETC.

"There is no lack of lively matter in Mr. Vizetelly's volumes, while


they embrace a vast amount of information of general interest
and permanent value. In a book which goes far beyond Berlin,
Mr. Vizetelly sketches with a vigorous hand the political and
social system of the Empire.... Nor less entertaining than these
clever social sketches are the political portraits, including public
men of all parties and of any note, from the Emperor and his
mighty Chancellor to the Socialist members of the Chambers.
Nor, talking of sketches, can we conclude our notice without
referring again to the excellent illustrations, chiefly of a
humorous character, which makes one smile over the perusal of
the gravest chapters. The selection is worthy of the author's
reputation as an artist."—Times.
"We have to thank Mr. Henry Vizetelly for a really instructive
book. 'Berlin under the New Empire,' published by Messrs.
Tinsley Brothers, is a work of substantial information,
conveniently arranged, clearly and agreeably written, and
mingled with entertaining descriptive passages, and with lively
notices of the habits of the townsfolk.... These volumes contain,
in short, a large amount of materials for the understanding of
present home affairs in Prussia and North Germany, which are
frequently made the topic of remarks in the current journals of
political discussion."—Illustrated London News.
"Mr. Vizetelly seems to have forgotten and omitted nothing that
could render these volumes instructive or contribute to the
entertainment of the reader; and the plentiful drawings with
which every page is furnished bring home to us with striking
reality the scenes so graphically described by the author."—Daily
News.
"Mr. Vizetelly's book, every page of which is interesting, is
unquestionably one of the best books of its kind that has
appeared in England for many years. In fact, we scarcely
remember ever to have read a more entertaining volume, or
one which contains so much valuable and evidently accurate
information. It instructs and amuses in equal degrees."—
Morning Post.
"After having discovered that a tribe of savages live in a sandy
desert somewhere in the north of Germany, and that their chief
kraal, a miserable stucco erection, is called Berlin, the author
proceeds to tell how those creatures manage to exist, what are
their institutions, manners, amusements, industries, and so
on."—Athenæum.
FEMALE WARRIORS. Memorials of Female Heroism, from the
Mythological Ages to the Present Era. By Ellen C. Clayton, author of
"Queens of Song," "English Female Artists," &c.

English and Scotch Heroines; French, German, and Genoese


Amazons; Female Warriors of the Reformation; Heroines of the
Irish Rebellion; Captain Rodeaux, Female Officer in the French
Army; Christian Davies, Female Soldier in the 20th Foot; Hannah
Snell, Private in the Line and Marines; Phœbe Hessel, Private in
the 5th Regiment; Hannah Whitney and Ann Chamberlayne,
Female Sailors; Mary Ralphson, Jenny Cameron, Pretty Polly
Oliver, &c.
"The most successful of Miss Clayton's attempts to fittingly
commemorate the actions of the illustrious members of the
softer sex."—Court Journal.

TYPICAL WORKING MEN AND WOMEN.


By a Working Man.

The Lushington, The Above-their-Business Order, The Club Man,


The Job-for-Life Man, The Rolling-stone, The Handy Man, The
Workshop Bully, The Workshop Oracle, The Saint Mondayite,
The Unskilled Labourer, The Regular Roadster, The Workshop
Orator, The Hard Bargain, The Cas'alty Man, The Thoroughly
Domesticated Man, The Evening-from-Home Man, The Single
Man, The Wasteral, The Scholar, The Last-Year Apprentice, The
Bred-and-Born Housewife, Mrs. Muddle, The Motherly Woman,
Mrs. Meddle, The Woman who Works, Dorothy Draggle-tail, &c.
*** END OF THE PROJECT GUTENBERG EBOOK THE WEIRD
SISTERS: A ROMANCE. VOLUME 3 (OF 3) ***

Updated editions will replace the previous one—the old editions


will be renamed.

Creating the works from print editions not protected by U.S.


copyright law means that no one owns a United States
copyright in these works, so the Foundation (and you!) can copy
and distribute it in the United States without permission and
without paying copyright royalties. Special rules, set forth in the
General Terms of Use part of this license, apply to copying and
distributing Project Gutenberg™ electronic works to protect the
PROJECT GUTENBERG™ concept and trademark. Project
Gutenberg is a registered trademark, and may not be used if
you charge for an eBook, except by following the terms of the
trademark license, including paying royalties for use of the
Project Gutenberg trademark. If you do not charge anything for
copies of this eBook, complying with the trademark license is
very easy. You may use this eBook for nearly any purpose such
as creation of derivative works, reports, performances and
research. Project Gutenberg eBooks may be modified and
printed and given away—you may do practically ANYTHING in
the United States with eBooks not protected by U.S. copyright
law. Redistribution is subject to the trademark license, especially
commercial redistribution.

START: FULL LICENSE


THE FULL PROJECT GUTENBERG LICENSE
PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK

To protect the Project Gutenberg™ mission of promoting the


free distribution of electronic works, by using or distributing this
work (or any other work associated in any way with the phrase
“Project Gutenberg”), you agree to comply with all the terms of
the Full Project Gutenberg™ License available with this file or
online at www.gutenberg.org/license.

Section 1. General Terms of Use and


Redistributing Project Gutenberg™
electronic works
1.A. By reading or using any part of this Project Gutenberg™
electronic work, you indicate that you have read, understand,
agree to and accept all the terms of this license and intellectual
property (trademark/copyright) agreement. If you do not agree
to abide by all the terms of this agreement, you must cease
using and return or destroy all copies of Project Gutenberg™
electronic works in your possession. If you paid a fee for
obtaining a copy of or access to a Project Gutenberg™
electronic work and you do not agree to be bound by the terms
of this agreement, you may obtain a refund from the person or
entity to whom you paid the fee as set forth in paragraph 1.E.8.

1.B. “Project Gutenberg” is a registered trademark. It may only


be used on or associated in any way with an electronic work by
people who agree to be bound by the terms of this agreement.
There are a few things that you can do with most Project
Gutenberg™ electronic works even without complying with the
full terms of this agreement. See paragraph 1.C below. There
are a lot of things you can do with Project Gutenberg™
electronic works if you follow the terms of this agreement and
help preserve free future access to Project Gutenberg™
electronic works. See paragraph 1.E below.
1.C. The Project Gutenberg Literary Archive Foundation (“the
Foundation” or PGLAF), owns a compilation copyright in the
collection of Project Gutenberg™ electronic works. Nearly all the
individual works in the collection are in the public domain in the
United States. If an individual work is unprotected by copyright
law in the United States and you are located in the United
States, we do not claim a right to prevent you from copying,
distributing, performing, displaying or creating derivative works
based on the work as long as all references to Project
Gutenberg are removed. Of course, we hope that you will
support the Project Gutenberg™ mission of promoting free
access to electronic works by freely sharing Project Gutenberg™
works in compliance with the terms of this agreement for
keeping the Project Gutenberg™ name associated with the
work. You can easily comply with the terms of this agreement
by keeping this work in the same format with its attached full
Project Gutenberg™ License when you share it without charge
with others.

1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside
the United States, check the laws of your country in addition to
the terms of this agreement before downloading, copying,
displaying, performing, distributing or creating derivative works
based on this work or any other Project Gutenberg™ work. The
Foundation makes no representations concerning the copyright
status of any work in any country other than the United States.

1.E. Unless you have removed all references to Project


Gutenberg:

1.E.1. The following sentence, with active links to, or other


immediate access to, the full Project Gutenberg™ License must
appear prominently whenever any copy of a Project
Gutenberg™ work (any work on which the phrase “Project
Gutenberg” appears, or with which the phrase “Project
Gutenberg” is associated) is accessed, displayed, performed,
viewed, copied or distributed:

This eBook is for the use of anyone anywhere in the United


States and most other parts of the world at no cost and
with almost no restrictions whatsoever. You may copy it,
give it away or re-use it under the terms of the Project
Gutenberg License included with this eBook or online at
www.gutenberg.org. If you are not located in the United
States, you will have to check the laws of the country
where you are located before using this eBook.

1.E.2. If an individual Project Gutenberg™ electronic work is


derived from texts not protected by U.S. copyright law (does not
contain a notice indicating that it is posted with permission of
the copyright holder), the work can be copied and distributed to
anyone in the United States without paying any fees or charges.
If you are redistributing or providing access to a work with the
phrase “Project Gutenberg” associated with or appearing on the
work, you must comply either with the requirements of
paragraphs 1.E.1 through 1.E.7 or obtain permission for the use
of the work and the Project Gutenberg™ trademark as set forth
in paragraphs 1.E.8 or 1.E.9.

1.E.3. If an individual Project Gutenberg™ electronic work is


posted with the permission of the copyright holder, your use and
distribution must comply with both paragraphs 1.E.1 through
1.E.7 and any additional terms imposed by the copyright holder.
Additional terms will be linked to the Project Gutenberg™
License for all works posted with the permission of the copyright
holder found at the beginning of this work.

1.E.4. Do not unlink or detach or remove the full Project


Gutenberg™ License terms from this work, or any files
containing a part of this work or any other work associated with
Project Gutenberg™.

1.E.5. Do not copy, display, perform, distribute or redistribute


this electronic work, or any part of this electronic work, without
prominently displaying the sentence set forth in paragraph 1.E.1
with active links or immediate access to the full terms of the
Project Gutenberg™ License.

1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if
you provide access to or distribute copies of a Project
Gutenberg™ work in a format other than “Plain Vanilla ASCII” or
other format used in the official version posted on the official
Project Gutenberg™ website (www.gutenberg.org), you must,
at no additional cost, fee or expense to the user, provide a copy,
a means of exporting a copy, or a means of obtaining a copy
upon request, of the work in its original “Plain Vanilla ASCII” or
other form. Any alternate format must include the full Project
Gutenberg™ License as specified in paragraph 1.E.1.

1.E.7. Do not charge a fee for access to, viewing, displaying,


performing, copying or distributing any Project Gutenberg™
works unless you comply with paragraph 1.E.8 or 1.E.9.

1.E.8. You may charge a reasonable fee for copies of or


providing access to or distributing Project Gutenberg™
electronic works provided that:

• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”

• You provide a full refund of any money paid by a user who


notifies you in writing (or by e-mail) within 30 days of receipt
that s/he does not agree to the terms of the full Project
Gutenberg™ License. You must require such a user to return or
destroy all copies of the works possessed in a physical medium
and discontinue all use of and all access to other copies of
Project Gutenberg™ works.

• You provide, in accordance with paragraph 1.F.3, a full refund of


any money paid for a work or a replacement copy, if a defect in
the electronic work is discovered and reported to you within 90
days of receipt of the work.

• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.

1.E.9. If you wish to charge a fee or distribute a Project


Gutenberg™ electronic work or group of works on different
terms than are set forth in this agreement, you must obtain
permission in writing from the Project Gutenberg Literary
Archive Foundation, the manager of the Project Gutenberg™
trademark. Contact the Foundation as set forth in Section 3
below.

1.F.

1.F.1. Project Gutenberg volunteers and employees expend


considerable effort to identify, do copyright research on,
transcribe and proofread works not protected by U.S. copyright
law in creating the Project Gutenberg™ collection. Despite these
efforts, Project Gutenberg™ electronic works, and the medium
on which they may be stored, may contain “Defects,” such as,
but not limited to, incomplete, inaccurate or corrupt data,
transcription errors, a copyright or other intellectual property
infringement, a defective or damaged disk or other medium, a
computer virus, or computer codes that damage or cannot be
read by your equipment.

1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except


for the “Right of Replacement or Refund” described in
paragraph 1.F.3, the Project Gutenberg Literary Archive
Foundation, the owner of the Project Gutenberg™ trademark,
and any other party distributing a Project Gutenberg™ electronic
work under this agreement, disclaim all liability to you for
damages, costs and expenses, including legal fees. YOU AGREE
THAT YOU HAVE NO REMEDIES FOR NEGLIGENCE, STRICT
LIABILITY, BREACH OF WARRANTY OR BREACH OF CONTRACT
EXCEPT THOSE PROVIDED IN PARAGRAPH 1.F.3. YOU AGREE
THAT THE FOUNDATION, THE TRADEMARK OWNER, AND ANY
DISTRIBUTOR UNDER THIS AGREEMENT WILL NOT BE LIABLE
TO YOU FOR ACTUAL, DIRECT, INDIRECT, CONSEQUENTIAL,
PUNITIVE OR INCIDENTAL DAMAGES EVEN IF YOU GIVE
NOTICE OF THE POSSIBILITY OF SUCH DAMAGE.

1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you


discover a defect in this electronic work within 90 days of
receiving it, you can receive a refund of the money (if any) you
paid for it by sending a written explanation to the person you
received the work from. If you received the work on a physical
medium, you must return the medium with your written
explanation. The person or entity that provided you with the
defective work may elect to provide a replacement copy in lieu
of a refund. If you received the work electronically, the person
or entity providing it to you may choose to give you a second
opportunity to receive the work electronically in lieu of a refund.
If the second copy is also defective, you may demand a refund
in writing without further opportunities to fix the problem.

1.F.4. Except for the limited right of replacement or refund set


forth in paragraph 1.F.3, this work is provided to you ‘AS-IS’,
WITH NO OTHER WARRANTIES OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.

1.F.5. Some states do not allow disclaimers of certain implied


warranties or the exclusion or limitation of certain types of
damages. If any disclaimer or limitation set forth in this
agreement violates the law of the state applicable to this
agreement, the agreement shall be interpreted to make the
maximum disclaimer or limitation permitted by the applicable
state law. The invalidity or unenforceability of any provision of
this agreement shall not void the remaining provisions.

1.F.6. INDEMNITY - You agree to indemnify and hold the


Foundation, the trademark owner, any agent or employee of the
Foundation, anyone providing copies of Project Gutenberg™
electronic works in accordance with this agreement, and any
volunteers associated with the production, promotion and
distribution of Project Gutenberg™ electronic works, harmless
from all liability, costs and expenses, including legal fees, that
arise directly or indirectly from any of the following which you
do or cause to occur: (a) distribution of this or any Project
Gutenberg™ work, (b) alteration, modification, or additions or
deletions to any Project Gutenberg™ work, and (c) any Defect
you cause.

Section 2. Information about the Mission


of Project Gutenberg™
Project Gutenberg™ is synonymous with the free distribution of
electronic works in formats readable by the widest variety of
computers including obsolete, old, middle-aged and new
computers. It exists because of the efforts of hundreds of
volunteers and donations from people in all walks of life.

Volunteers and financial support to provide volunteers with the


assistance they need are critical to reaching Project
Gutenberg™’s goals and ensuring that the Project Gutenberg™
collection will remain freely available for generations to come. In
2001, the Project Gutenberg Literary Archive Foundation was
created to provide a secure and permanent future for Project
Gutenberg™ and future generations. To learn more about the
Project Gutenberg Literary Archive Foundation and how your
efforts and donations can help, see Sections 3 and 4 and the
Foundation information page at www.gutenberg.org.

Section 3. Information about the Project


Gutenberg Literary Archive Foundation
The Project Gutenberg Literary Archive Foundation is a non-
profit 501(c)(3) educational corporation organized under the
laws of the state of Mississippi and granted tax exempt status
by the Internal Revenue Service. The Foundation’s EIN or
federal tax identification number is 64-6221541. Contributions
to the Project Gutenberg Literary Archive Foundation are tax
deductible to the full extent permitted by U.S. federal laws and
your state’s laws.

The Foundation’s business office is located at 809 North 1500


West, Salt Lake City, UT 84116, (801) 596-1887. Email contact
links and up to date contact information can be found at the
Foundation’s website and official page at
www.gutenberg.org/contact
Section 4. Information about Donations to
the Project Gutenberg Literary Archive
Foundation
Project Gutenberg™ depends upon and cannot survive without
widespread public support and donations to carry out its mission
of increasing the number of public domain and licensed works
that can be freely distributed in machine-readable form
accessible by the widest array of equipment including outdated
equipment. Many small donations ($1 to $5,000) are particularly
important to maintaining tax exempt status with the IRS.

The Foundation is committed to complying with the laws


regulating charities and charitable donations in all 50 states of
the United States. Compliance requirements are not uniform
and it takes a considerable effort, much paperwork and many
fees to meet and keep up with these requirements. We do not
solicit donations in locations where we have not received written
confirmation of compliance. To SEND DONATIONS or determine
the status of compliance for any particular state visit
www.gutenberg.org/donate.

While we cannot and do not solicit contributions from states


where we have not met the solicitation requirements, we know
of no prohibition against accepting unsolicited donations from
donors in such states who approach us with offers to donate.

International donations are gratefully accepted, but we cannot


make any statements concerning tax treatment of donations
received from outside the United States. U.S. laws alone swamp
our small staff.

Please check the Project Gutenberg web pages for current


donation methods and addresses. Donations are accepted in a
number of other ways including checks, online payments and
credit card donations. To donate, please visit:
www.gutenberg.org/donate.

Section 5. General Information About


Project Gutenberg™ electronic works
Professor Michael S. Hart was the originator of the Project
Gutenberg™ concept of a library of electronic works that could
be freely shared with anyone. For forty years, he produced and
distributed Project Gutenberg™ eBooks with only a loose
network of volunteer support.

Project Gutenberg™ eBooks are often created from several


printed editions, all of which are confirmed as not protected by
copyright in the U.S. unless a copyright notice is included. Thus,
we do not necessarily keep eBooks in compliance with any
particular paper edition.

Most people start at our website which has the main PG search
facility: www.gutenberg.org.

This website includes information about Project Gutenberg™,


including how to make donations to the Project Gutenberg
Literary Archive Foundation, how to help produce our new
eBooks, and how to subscribe to our email newsletter to hear
about new eBooks.
Welcome to our website – the perfect destination for book lovers and
knowledge seekers. We believe that every book holds a new world,
offering opportunities for learning, discovery, and personal growth.
That’s why we are dedicated to bringing you a diverse collection of
books, ranging from classic literature and specialized publications to
self-development guides and children's books.

More than just a book-buying platform, we strive to be a bridge


connecting you with timeless cultural and intellectual values. With an
elegant, user-friendly interface and a smart search system, you can
quickly find the books that best suit your interests. Additionally,
our special promotions and home delivery services help you save time
and fully enjoy the joy of reading.

Join us on a journey of knowledge exploration, passion nurturing, and


personal growth every day!

ebookbell.com

You might also like