Skip to content

Commit

Permalink
Using unsigned Int Array
Browse files Browse the repository at this point in the history
  • Loading branch information
Vertumnus committed Aug 14, 2017
1 parent d487b38 commit 8c2cf55
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion doc/SoftSPI.html
Expand Up @@ -1626,7 +1626,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="SoftSPI.h
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Fri Jul 14 2017 16:04:49 GMT+0200 (Mitteleuropäische Sommerzeit)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Mon Aug 14 2017 01:12:19 GMT+0200 (Mitteleuropäische Sommerzeit)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion doc/index.html
Expand Up @@ -56,7 +56,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="SoftSPI.h
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Fri Jul 14 2017 16:04:49 GMT+0200 (Mitteleuropäische Sommerzeit)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Mon Aug 14 2017 01:12:19 GMT+0200 (Mitteleuropäische Sommerzeit)
</footer>

<script> prettyPrint(); </script>
Expand Down
8 changes: 4 additions & 4 deletions doc/softspi.js.html
Expand Up @@ -30,7 +30,7 @@ <h1 class="page-title">Source: softspi.js</h1>
* Copyright Armin Junge
*/

/* global Int8Array */
/* global Uint8Array */

var rpio = require("rpio")

Expand Down Expand Up @@ -267,7 +267,7 @@ <h1 class="page-title">Source: softspi.js</h1>
*/
read(bytes)
{
return this.transfer(new Int8Array(bytes), true, false)
return this.transfer(new Uint8Array(bytes), true, false)
}

/**
Expand Down Expand Up @@ -341,7 +341,7 @@ <h1 class="page-title">Source: softspi.js</h1>
this.assert(!read || this.miso, "No input pin defined")
this.assert(!write || this.mosi, "No output pin defined")

let trans = Int8Array.from(data)
let trans = Uint8Array.from(data)
let result = []

this.activateClient()
Expand Down Expand Up @@ -413,7 +413,7 @@ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="SoftSPI.h
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Fri Jul 14 2017 16:04:49 GMT+0200 (Mitteleuropäische Sommerzeit)
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Mon Aug 14 2017 01:12:19 GMT+0200 (Mitteleuropäische Sommerzeit)
</footer>

<script> prettyPrint(); </script>
Expand Down
4 changes: 2 additions & 2 deletions lib/rpi-softspi.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8c2cf55

Please sign in to comment.