Skip to content

Commit 42b86a2

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 6e16fa7 + b6e0e21 commit 42b86a2

File tree

133 files changed

+12509
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+12509
-5
lines changed

docs/p2.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ Propeller 2 early adopters may experiment with two options: 1) limited-edition b
172172
## Software
173173
* ### IDEs
174174
* #### Spin2 & PASM2
175-
- Propeller Tool - Parallax P1 & P2 IDE (built for Windows)
176-
- [Propeller Tool v2.3.0.0 Alpha (09/03/20)][PTool] - for P2 Rev B/C (2nd/3rd -ES silicon) [3rd is slated as production version] as used on the Rev B and Rev C P2 Eval boards
175+
- [Propeller Tool][PTool] - Parallax P1 & P2 IDE (built for Windows)
177176
- PNut - Parallax P2 IDE (built for Windows- can be used with wine on Linux and MacOS)
178177
- [PNut v34zb][PNutV34] - (signed) for P2 Rev B/C (2nd/3rd ES silicon) [3rd is slated as production version] as used on the Rev C P2 Eval boards. DEBUG displays added and enhanced, lot of DEBUG examples. Now supports all three text-file formats: PC (CR+LF), Linux (LF-only), and Mac (CR-only). Format preserved on save. See [P2 Spin2 Launguage][P2SpinDoc] documentation's DEBUG details
179178
- [PNut v32i](https://github.com/parallaxinc/propeller/releases/download/v32i/PNut_v32i.exe) - for P2 Rev A (1st -ES silicon, as used on the Rev A P2 Eval boards)
@@ -212,6 +211,27 @@ by Dave Hein
212211
## Recent Activity
213212
##### _Full details [here](https://github.com/parallaxinc/propeller/pulls?q=is%3Aclosed)._
214213

214+
* Added Jon "JonnyMac" McPhalen's [DHTxx Temperature/Humidity](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p2/All/jm_dhtxx) object
215+
* Added object from Greg LaPolla's
216+
* P1 [ADS1118 C](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p1/All/ads1118/C)
217+
* P1 [ADS1118 Spin](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p1/All/ads1118/Spin)
218+
* P2 [ADS1118](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p2/All/ads1118)
219+
* P2 [ILI9341](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p2/All/ili9341)
220+
* Added Dennis Gately's (and BR's) [DS1302 Full](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p2/All/DS1302_full) object.
221+
* Added Jon "JonnyMac" McPhalen's [Quiic Twist](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p2/All/jm_quiic_twist) object
222+
* Added Objects from Jon "JonnyMac" McPhalen
223+
* [AT24C32](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p2/All/jm_at24c32)
224+
* [DS3231](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p2/All/jm_ds3231)
225+
* [I2C Devices](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p2/All/jm_i2c_devices)
226+
* [NEC RX](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p2/All/jm_nec_rx)
227+
* [NEC TX](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p2/All/jm_nec_tx)
228+
* [PIXY2](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p2/All/jm_pixy2)
229+
* Added Stephen Moraco's [ISP Hub75 Matrix](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p2/All/isp_hub75_matrix) object
230+
* Added Objects
231+
* [Accessory Buttons](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p2/All/Acc_Buttons) - Bryan Thomas
232+
* [FT813 EVE2 Driver](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p1/All/FT813%20EVE2%20Driver) - Chris Gadd
233+
* [LPD8806 "Smart" Pixel Driver](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p2/All/jm_lpd8806) - Jon "JonnyMac" McPhalen
234+
* [Soft Timer](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p2/All/jm_soft_timer) - Jon "JonnyMac" McPhalen
215235
* Added Jon "JonnyMac" McPhalen's objects
216236
* [Click 4-20ma Object](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p2/All/jm_click_4-20ma)
217237
* [Click DMX-TX Object](https://github.com/parallaxinc/propeller/tree/master/libraries/community/p2/All/jm_click_dmx-tx)
@@ -295,4 +315,4 @@ by Dave Hein
295315
[P2SpinDoc]: https://docs.google.com/document/d/16qVkmA6Co5fUNKJHF6pBfGfDupuRwDtf-wyieh_fbqw/edit "P2 Spin2 Language Doc"
296316
[P2SmartPinDoc]: https://drive.google.com/file/d/1iTA4dwbntgaUVnpt0-9pDcFCVSsvCUnU/view?usp=sharing "P2 Smart Pin Supplementary Doc"
297317
[PNutV34]: https://github.com/parallaxinc/propeller/releases/tag/PNut_v34zb "PNut v34zb"
298-
[PTool]: https://www.parallax.com/downloads/propeller-tool-software-windows-spin-assembly "Propeller Tool v2.3.0.0 Alpha"
318+
[PTool]: https://www.parallax.com/package/propeller-tool-software-for-windows-spin-assembly-2/ "Propeller Tool v2.4"
15.7 KB
Binary file not shown.
138 KB
Binary file not shown.
Binary file not shown.
106 KB
Binary file not shown.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ADS1118.c
2+
>compiler=C
3+
>memtype=cmm main ram compact
4+
>optimize=-Os
5+
>-m32bit-doubles
6+
>-Wall
7+
>-fno-exceptions
8+
>BOARD::ACTIVITYBOARD
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# libads1118
2+
3+
## Language
4+
5+
C
6+
7+
## Category
8+
9+
Sensor
10+
11+
## Description
12+
13+
libads1118 is a c library that interfaces the TI ADS1118 chip with the Propeller P8X32A
14+
15+
Learn more about the Propeller at [www.parallax.com](http://www.parallax.com).
16+
17+
18+
19+
## License
20+
21+
Copyright © 2020 Greg LaPolla libads1118 is licensed under the MIT License.
22+
23+
## Credits
24+
25+
libads1118 is developed by Greg LaPolla.
26+
This Driver was derived from the arduino driver localted at [Github](https://github.com/denkitronik/ADS1118).
27+
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/*
2+
* @file ads1118_decodeConfigRegister.c
3+
*
4+
* @author Greg LaPolla
5+
*
6+
* @version 0.1
7+
*
8+
* @copyright Copyright (C) 2020. See end of file for
9+
* terms of use (MIT License).
10+
*
11+
* @brief This is a driver that allows the Propeller Multicore Microcontroller to
12+
* commnicate with the TI ADS1118 16 bit ADC with compensatin temperature sensor
13+
*
14+
*/
15+
16+
#include "simpletools.h"
17+
#include "ads1118.h"
18+
19+
20+
double volts;
21+
double temp;
22+
uint16_t adc;
23+
24+
25+
int main() // Main function
26+
{
27+
28+
ads1118_init(22,23,20,21);
29+
30+
ads1118_enableNOP();
31+
ads1118_enablePullup();
32+
ads1118_setSamplingRate(RATE_128SPS);
33+
ads1118_setSingleShotMode();
34+
ads1118_setFullScaleRange(FSR_0256);
35+
ads1118_enableSingleStart();
36+
37+
38+
while(1)
39+
{
40+
adc = ads1118_getADCValue(DIFF_0_1);
41+
print("\n%cadc 1 reading = %d%c\n\n", HOME, adc, CLREOL); // Display adc reading
42+
43+
ads1118_decodeconfigRegister(configRegister);
44+
45+
adc = ads1118_getADCValue(DIFF_2_3);
46+
print("\nadc 2 reading = %d%c\n\n",adc, CLREOL); // Display adc reading
47+
48+
ads1118_decodeconfigRegister(configRegister);
49+
50+
volts = ads1118_getMilliVolts(DIFF_0_1);
51+
print("\nMillivolts 1 = %f%c\n\n",volts,CLREOL); // Display milivolts
52+
53+
ads1118_decodeconfigRegister(configRegister);
54+
55+
volts = ads1118_getMilliVolts(DIFF_2_3);
56+
print("\nMillivolts 2 = %f%c\n\n",volts,CLREOL); // Display milivolts
57+
58+
ads1118_decodeconfigRegister(configRegister);
59+
60+
temp = (ads1118_getTemperature() * 9 / 5) + 32;
61+
print("\nTemperature = %f%c\n",temp,CLREOL); // Display milivolts
62+
63+
pause(1000);
64+
}
65+
}

0 commit comments

Comments
 (0)