humble_rpi-plugin-piezoelements 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 049c5c459fab0d397fbf2717a9938ab6d28db979
4
+ data.tar.gz: c7040b2b4341c45a930004305344532eaa8b72c9
5
+ SHA512:
6
+ metadata.gz: 58c9906b4816cb315e42286b561438274f8c2b0a32531fb4e6bf918ee8947beb84cb2b2a9c6f3d6f496430da67239cdadba7806ddd2c909cb3c7230161766f53
7
+ data.tar.gz: 0dd0ca1dc1c1d059cc117b865f53c288bf66a79264e233c47182f3a3503a496846461f48b873740e5cd8c45d31ce480596e9cf66e85072f4c7dc2268c5a82007
Binary file
@@ -0,0 +1 @@
1
+ ϓ�-9ܝ@o�֕�?q+u��Öf�PETE6x� &z��J0���u�61�c�~����ldj�l��e�m_{��,NyfJĩ+��wL��F�"���pW\ƎY�o���9�����_���ْl�S ����[U�1(e1���B�(��Y�ֻ�&�T� ���-����r-��0��Q}�_K� :6бpW;�p� �}X�e��ǿbo����!:����ʀ�̘�r�u���w�jFI�pC�K�@z-_�s:��Dž�npz��
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # file: humble_rpi-plugin-piezoelements.rb
4
+
5
+ require 'rpi-pddb'
6
+
7
+
8
+
9
+ class HumbleRPiPluginPiezoElements
10
+
11
+ def initialize(settings: {}, variables: {})
12
+
13
+ @gpio_pin = settings[:pin]
14
+
15
+ end
16
+
17
+ def on_piezoelements_message(message)
18
+
19
+ @sounder.buzz
20
+
21
+ end
22
+
23
+ def start()
24
+
25
+ @sounder = RPiPDDB.new(@gpio_pin) if @gpio_pin
26
+
27
+ end
28
+
29
+ alias on_start start
30
+
31
+ def on_exit()
32
+ @sounder.on_exit
33
+ end
34
+
35
+
36
+ end
37
+
metadata ADDED
@@ -0,0 +1,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: humble_rpi-plugin-piezoelements
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - James Robertson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
+ YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
+ 8ixkARkWAmV1MB4XDTE2MDIxODIyMjIwNVoXDTE3MDIxNzIyMjIwNVowSDESMBAG
16
+ A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
+ EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
+ ggEBANBwVxsSBzx5B1zD3wx+0e3CznnfTZNMCiIGQ7h77cDkKapb5slDoDKw0j+a
19
+ mO/lPpJsPI/DQ4LXk5tCavy/H131jvPmAaRZrWzMGqI7a6Wt9TbiZjRbY33IO68M
20
+ jm2OOCCF93BBnhgE2lnNrz+DlgqGWrXV6mZCc5ZO44XpttFWlpInbbBWCd2Lt+zB
21
+ Zf6GEHP2Y923JcAUexE6BCtBkXvobFIm83/En0VobZHrDj2uIrD2k0JN0KJE0cZc
22
+ uYsoK8X95CIcPRYYXj8Plr0hfvy45zK2TXJAXWoflT1qHdOUbFpEXOh3tgGMwMmw
23
+ NW1Hy2V3BJLTsJ0Gk5RW+Y+/v3kCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
24
+ DwQEAwIEsDAdBgNVHQ4EFgQU4nzMXsGPiJxWlwtXjDQHKiDCPyUwJgYDVR0RBB8w
25
+ HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
26
+ c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAUCKILe6r
27
+ XjVwQexBwQey//2bw2El0pyECoJOIYl9UZmS4olUSTCM/5I+wtMA9gZZv5Bk0kc5
28
+ OuIxSKYRS3Q8L8/fW9OH48qokrZxIgt82SAap8TyUckDzOZAJtohp0dn9Vobp+I8
29
+ Y5a29eqc/5BKnaD91xdQQyB4QqGqvyURWL8uHaZ3NC4T8wRyOP6C9zMb282qj0vo
30
+ l9fKnPkkW9xAbGaJjsOf1QiQzZJJNLkoggGt6djdMgkhVwk7ZRgLdxaSCzneZ2RJ
31
+ qGNxO6Vy0MpuBEb+hcDwATeR+DZ/iGL15rK3ZpcnE86AqdUOOXaNt/E/lZHt8Dac
32
+ vRz+qDM4xoCJYg==
33
+ -----END CERTIFICATE-----
34
+ date: 2016-02-18 00:00:00.000000000 Z
35
+ dependencies:
36
+ - !ruby/object:Gem::Dependency
37
+ name: rpi-pddb
38
+ requirement: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '0.1'
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: 0.1.0
46
+ type: :runtime
47
+ prerelease: false
48
+ version_requirements: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '0.1'
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 0.1.0
56
+ description:
57
+ email: james@r0bertson.co.uk
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - lib/humble_rpi-plugin-piezoelements.rb
63
+ homepage: https://github.com/jrobertson/humble_rpi-plugin-piezoelements
64
+ licenses:
65
+ - MIT
66
+ metadata: {}
67
+ post_install_message:
68
+ rdoc_options: []
69
+ require_paths:
70
+ - lib
71
+ required_ruby_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ requirements: []
82
+ rubyforge_project:
83
+ rubygems_version: 2.4.8
84
+ signing_key:
85
+ specification_version: 4
86
+ summary: A Humble RPi plugin to generate a buzzing sound using a piezo elements drum
87
+ disc sounder.
88
+ test_files: []
Binary file