Skip to content

Commit

Permalink
add gpio extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Menersar committed Feb 24, 2024
1 parent 955165d commit 9ce6a98
Show file tree
Hide file tree
Showing 8 changed files with 273 additions and 86 deletions.
111 changes: 87 additions & 24 deletions src/lib/libraries/extensions/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import translateInsetIconURL from './translate/translate-small.png';
import makeymakeyIconURL from './makeymakey/makeymakey.png';
import makeymakeyInsetIconURL from './makeymakey/makeymakey-small.svg';

import pigpioIconURL from './pigpio/pigpio.png';
import pigpioInsetIconURL from './pigpio/pigpio-small.svg';
// import pigpioIconURL from './pigpio/pigpio.png';
// import pigpioInsetIconURL from './pigpio/pigpio-small.svg';

import microbitIconURL from './microbit/microbit.png';
import microbitInsetIconURL from './microbit/microbit-small.svg';
Expand Down Expand Up @@ -59,6 +59,15 @@ import sidekickIcon from './sidekick/sidekick.svg';

import customExtensionIcon from './custom/custom.svg';

import pigpioIconURL from './pigpio/pigpio.png';
import pigpioInsetIconURL from './pigpio/pigpio-small.svg';

import pisensehatIconURL from './pisensehat/pisensehat.png';
import pisensehatInsetIconURL from './pisensehat/pisensehat-small.svg';

import pivsgpioIconURL from './pivsgpio/pivsgpio.png';
import pivsgpioInsetIconURL from './pivsgpio/pivsgpio-small.svg';

// eslint-disable-next-line no-unused-vars
// import unknownIcon from './gallery/unknown.svg';
import returnIcon from './custom/return.svg';
Expand Down Expand Up @@ -254,29 +263,83 @@ export default [
tags: ['scratch'],
featured: true
},
// {
// // name: 'Raspberry Pi GPIO',
// name: (
// <FormattedMessage
// defaultMessage="Raspberry Pi GPIO"
// description="Name for the 'Pi GPIO' extension"
// id="gui.extension.pigpio.name"
// />
// ),
// extensionId: 'pigpio',
// collaborator: 'Raspberry Pi',
// iconURL: pigpioIconURL,
// insetIconURL: pigpioInsetIconURL,
// description: (
// <FormattedMessage
// defaultMessage="Control Raspberry Pi GPIO lines."
// description="Description for the 'Pi GPIO' extension"
// id="gui.extension.pigpio.description"
// />
// ),
// tags: ['scratch'],
// featured: true
// },


{
// name: 'Raspberry Pi GPIO',
name: (
<FormattedMessage
defaultMessage="Raspberry Pi GPIO"
description="Name for the 'Pi GPIO' extension"
id="gui.extension.pigpio.name"
/>
),
extensionId: 'pigpio',
collaborator: 'Raspberry Pi',
iconURL: pigpioIconURL,
insetIconURL: pigpioInsetIconURL,
description: (
<FormattedMessage
defaultMessage="Control Raspberry Pi GPIO lines."
description="Description for the 'Pi GPIO' extension"
id="gui.extension.pigpio.description"
/>
),
tags: ['scratch'],
featured: true
},
name: 'Raspberry Pi GPIO',
extensionId: 'pigpio',
collaborator: 'Raspberry Pi',
iconURL: pigpioIconURL,
insetIconURL: pigpioInsetIconURL,
description: (
<FormattedMessage
defaultMessage="Control Raspberry Pi GPIO lines"
description="Description for the 'Pi GPIO' extension"
id="gui.extension.pigpio.description"
/>
),
featured: true,
tags: ['scratch']

},
{
name: 'Raspberry Pi Sense HAT',
extensionId: 'pisensehat',
collaborator: 'Raspberry Pi',
iconURL: pisensehatIconURL,
insetIconURL: pisensehatInsetIconURL,
description: (
<FormattedMessage
defaultMessage="Control Raspberry Pi Sense HAT"
description="Description for the 'Pi Sense HAT' extension"
id="gui.extension.pisensehat.description"
/>
),
featured: true,
tags: ['scratch']

},
{
name: 'Raspberry Pi Simple Electronics',
extensionId: 'pivsgpio',
collaborator: 'Raspberry Pi',
iconURL: pivsgpioIconURL,
insetIconURL: pivsgpioInsetIconURL,
description: (
<FormattedMessage
defaultMessage="Simple electronics with Raspberry Pi"
description="Description for the 'Pi Simple Electronics' extension"
id="gui.extension.pivsgpio.description"
/>
),
featured: true,
tags: ['scratch']
},


{
name: 'micro:bit',
extensionId: 'microbit',
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions src/lib/libraries/extensions/pigpio/pigpio-small-sidekick.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9ce6a98

Please sign in to comment.