# GFX License
Version 1.3

## 1. Definitions

1.1. Works

  means the library commonly known as µGFX, uGFX, GFX, ChibiOS-GFX or ChibiOS/GFX, in source code or binary form, linked or unlinked with an application or another library.

1.2. Contributor

  means each individual or legal entity that creates, contributes to the creation of the Works.

1.3. Contribution

  means Software of a particular Contributor that has been offered to form part of the Works.

1.4. Executable form

  means any form of the Works other than Source Code Form.

1.5. Application

  means a work or software that combines the Works with other material, in a separate file or files whether in executable format or in library format, as Software or on a device.

1.6. License

  means this document.

1.7. Modifications

  means any of the following:

  1. any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of the Works; or

  2. any new file in Source Code Form that contains any part of the Works.

1.8. Patent Claims of a Contributor

  means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of its Contributions.

1.9. Source Code Form

  means the form of the work preferred for making modifications.

1.10. You (or Your)

  means an individual or a legal entity exercising rights under this License. For legal entities, You includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, control means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity.

1.11. License Owner

  means Joel Bodenmann (joel@ugfx.io) and Andrew Hannam (andrew@ugfx.io). Both parties are joint and severely owners of the license.

1.12. Commercial Use

  means any use of the Works that may result in income or equivalent benefit in any form. Examples of Commercial Use include; selling an Application or Device containing the Works, offering paid support to modify the Works, selling a library containing the Works. Examples of use that are NOT Commercial Use include; using the Works for Education, use of the Works in hobbyist projects that have no expectation of income, use of the Works in building what will later become a Commercial Use product. Note that Commercial Use does not include the prototyping and preparation for income generating activities - only the income producing activity itself.

## 2. Non Commercial Use

### 2.1. Distribution of source form

If You distribute the Works in an source form then:

1. All distribution of the Works in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License; and

2. You must inform recipients that the Source Code Form of the Works is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter the recipients rights in the Source Code Form; and

3. Any modification to the Works must be contributed to the License Owners, as per Section 4, prior to distribution with the exception of a working public source control repository. In this situation, modifications of the Works must be contributed to the License Owners within one calendar month; and

4. source code not forming part of the Works that are distributed in conjunction with the Works do not need to be contributed to the License Owners or use this License.

Note: This means that you must contribute changes you make to the library, you do not need to contribute your application or any other code outside of GFX library itself.

### 2.2. Distribution of Executable form

If You distribute the Works in an Executable form then:

1. You must inform recipients of the Executable form that it contains the Works and how they can obtain a copy of the Works in Source Code Form from the License Owners master repository; and

2. Any modification to the Works must be contributed to the License Owners as per Section 4 prior to distribution; and

3. You may distribute such Executable form under the terms of this License, or license it under different terms, provided that the license for the Executable form does not allow for Commercial Use of the Works or attempt to limit or alter the recipients' rights in the Source Code Form under this License.

## 3. Commercial Use

### 3.1. Commercial Use Agreement

A "Commercial Use Agreement" explicitly signed by the License Owner will override any specified terms of this License for the party to the agreement under the terms of the agreement. All other terms of this License will still apply.

### 3.2. Distribution

Other than as provided for in a signed "Commercial Use Agreement", where there is a Commercial Use involved or implied, you are not permitted to distribute the Works in any form, either in source code or Executable form, either as software or on a device or in any other way.

## 4. Contributions

### 4.1. Contributor Grants

Each Contributor hereby irrevocably grants to the License Owner without fee or charge:

1. under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, relicense and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and

2. under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, relicense and otherwise transfer its Contributions.

### 4.2. Effective Date

The licenses granted in Section 4.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first contributes or distributes such Contribution.

### 4.3. Limitations on Grant Scope

The grants made in this Section 4 are the only rights granted. No additional rights or licenses will be implied from the distribution or licensing of the Works under this License. Notwithstanding Section 4.1(b) above, no patent license is granted by a Contributor:

1. for any code that a Contributor has removed from Contribution; or

2. under Patent Claims infringed by the Works in the absence of its Contributions.

This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the requirements in Section 4.4).

### 4.4. Representation

Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License. Each Contributor accepts sole responsibility for the legal position of its Contribution and holds blameless the License Owners for such Contribution or any modification to it.

### 4.5. Deeming of Contributions

Each Contributor deems that by Contributing to the Works, through any method offered by the License Owners, irrespective of the license provided in the Contribution, is agreeing to the Contribution being licensed under this License with its Grants, Scope and Representation.

### 4.6. Original Source Rights

By contributing to the Works, the Contributor is not removing their own copyright in their original work. The original work retains all existing copyrights and other rights, except the rights as described above have been granted to the license owners on the copy of the contribution as contributed.

This is equivelent to the "forking" of the contribution to two different licenses, one as part of the works (GFX) and the other as in its original form.

### 4.7. Additional Rights

A Contribution does not convey any extra distribution rights for the Contributor to the Works under this license.

## 5. Notices

You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Works, except that You may alter any license notices to the extent required to remedy known factual inaccuracies.

## 6. Inability to Comply Due to Statute or Regulation

If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Works due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be Contributed to the License Owners and placed in a text file included with all distributions of the Works under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it.

## 7. Termination

7.1. The distribution rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License (a) provisionally, unless and until the License Owner explicitly and finally terminates Your grants, and (b) on an ongoing basis, if the License Owner fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance.

7.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that the License Owner directly or indirectly infringes any patent, then the rights granted to You by the License Owner for the Works shall terminate.

## 8. Disclaimer of Warranty

Covered Software is provided under this License on an as is basis, without warranty of any kind, either expressed, implied, or statutory, including, without limitation, warranties that the Works is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire risk as to the quality and performance of the Works is with You. Should any of the Works prove defective in any respect, You assume the cost of any necessary servicing, repair, or correction. This disclaimer of warranty constitutes an essential part of this License. No use of the Works is authorized under this License except under this disclaimer.

## 9. Limitation of Liability

Under no circumstances and under no legal theory, whether tort (including negligence), contract, or otherwise, shall the License Owner, any Contributor, or anyone who distributes the Works as permitted above, be liable to You for any direct, indirect, special, incidental, or consequential damages of any character including, without limitation, damages for lost profits, loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses, even if such party shall have been informed of the possibility of such damages.

## 10. Litigation

Any litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims.

## 11. Miscellaneous

This License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor ro the License Owner.

## 12. Versions of the License

### 12.1. New Versions

The License Owner is the license steward. Except as provided in Section 12.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number.

### 12.2. Effect of New Versions

You may distribute the Works under the terms of the version of the License under which You originally received the Works, or under the terms of any subsequent version published by the license steward.

### 12.3. Modified Versions

If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the License Owner (except to note that such modified license differs from this License).

### 13. Source Code License Notice

Where ever possible the source code for the Works is to contain a header as per Exhibit A. Where this would be syntactically incorrect then modifications to allow syntactic parsing by a compiler are allowed but only to the extent that they allow correct syntactic parsing. If it is not possible to put the notice in a particular file, then You may include the notice in a location where a recipient would be likely to look for such a notice such as a “license.txt” file in a relevant directory.

## Exhibit A - Source Code Form License Notice

    /*
     * This file is subject to the terms of the GFX License. If a copy of
     * the license was not distributed with this file, you can obtain one at:
     *
     *              http://ugfx.com/license.html
     */